fix for 標題後台為「校園新聞」,前台顯示為「新聞」 該頁面為列表,最上方卻出現「搜尋結果」? from Mr.張
This commit is contained in:
parent
eed7b78357
commit
d589a1b522
|
@ -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| %>
|
||||
|
|
|
@ -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">
|
||||
|
|
Reference in New Issue