add not found for no result

This commit is contained in:
Matthew K. Fu JuYuan 2012-07-25 13:58:09 +08:00
parent 98fd9223a8
commit 25f4e292e6
3 changed files with 8 additions and 0 deletions

View File

@ -293,3 +293,5 @@ en:
not_previewable: "Preview not support" not_previewable: "Preview not support"
limit_of_upload_file_size: "Upload file must be less than: %{best_size}" limit_of_upload_file_size: "Upload file must be less than: %{best_size}"
search:
not_found: "NOT FOUND"

View File

@ -430,6 +430,9 @@ zh_tw:
select: select:
prompt: "請選擇" prompt: "請選擇"
search:
not_found: "沒有搜尋結果"
activerecord: activerecord:
errors: errors:
template: # ~ 2.3.5 backward compatible template: # ~ 2.3.5 backward compatible

View File

@ -25,6 +25,9 @@
<td><%= display_date(post.postdate) %></td> <td><%= display_date(post.postdate) %></td>
</tr> </tr>
<% end %> <% end %>
<% if @news_bulletins.blank? %>
<%=render :partial => 'shared/search_not_found' %>
<% end %>
</tbody> </tbody>
</table> </table>