add not found for no result
This commit is contained in:
parent
98fd9223a8
commit
25f4e292e6
|
@ -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"
|
|
@ -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
|
||||||
|
|
|
@ -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>
|
||||||
|
|
||||||
|
|
Reference in New Issue