fix for 標題後台為「校園新聞」,前台顯示為「新聞」 該頁面為列表,最上方卻出現「搜尋結果」? from Mr.張

This commit is contained in:
Matthew K. Fu JuYuan 2012-07-27 07:42:00 +08:00
parent eed7b78357
commit d589a1b522
2 changed files with 4 additions and 4 deletions

View File

@ -15,9 +15,9 @@
<th><%= t('announcement.bulletin.title') %></th>
<th><%= t('announcement.bulletin.postdate') %></th>
</tr>
<% if @bulletins.blank? %>
<% if @bulletins.blank? and !params[:search_query].blank? %>
<%=render :partial => 'shared/search_not_found' %>
<% else %>
<% elsif !params[:search_query].blank? %>
<%= t("search.result_get",:item_num=>@bulletins.count) %>
<% end %>
<% @bulletins.each do |post| %>

View File

@ -7,9 +7,9 @@
<% else %>
<h1 class="h1"><%= t('news.news') %></h1>
<% end %>
<% if @news_bulletins.blank? %>
<% if @news_bulletins.blank? and !params[:search_query].blank? %>
<%=render :partial => 'shared/search_not_found' %>
<% else %>
<% elsif !params[:search_query].blank? %>
<%= t("search.result_get",:item_num=>@news_bulletins.count) %>
<% end %>
<table class="table table-bordered">