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.title') %></th>
|
||||||
<th><%= t('announcement.bulletin.postdate') %></th>
|
<th><%= t('announcement.bulletin.postdate') %></th>
|
||||||
</tr>
|
</tr>
|
||||||
<% if @bulletins.blank? %>
|
<% if @bulletins.blank? and !params[:search_query].blank? %>
|
||||||
<%=render :partial => 'shared/search_not_found' %>
|
<%=render :partial => 'shared/search_not_found' %>
|
||||||
<% else %>
|
<% elsif !params[:search_query].blank? %>
|
||||||
<%= t("search.result_get",:item_num=>@bulletins.count) %>
|
<%= t("search.result_get",:item_num=>@bulletins.count) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% @bulletins.each do |post| %>
|
<% @bulletins.each do |post| %>
|
||||||
|
|
|
@ -7,9 +7,9 @@
|
||||||
<% else %>
|
<% else %>
|
||||||
<h1 class="h1"><%= t('news.news') %></h1>
|
<h1 class="h1"><%= t('news.news') %></h1>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if @news_bulletins.blank? %>
|
<% if @news_bulletins.blank? and !params[:search_query].blank? %>
|
||||||
<%=render :partial => 'shared/search_not_found' %>
|
<%=render :partial => 'shared/search_not_found' %>
|
||||||
<% else %>
|
<% elsif !params[:search_query].blank? %>
|
||||||
<%= t("search.result_get",:item_num=>@news_bulletins.count) %>
|
<%= t("search.result_get",:item_num=>@news_bulletins.count) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<table class="table table-bordered">
|
<table class="table table-bordered">
|
||||||
|
|
Reference in New Issue