Fix announcement front-end bug
This commit is contained in:
parent
9b1ada0af9
commit
112f7000a0
|
@ -225,7 +225,7 @@
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<table class="table table-bordered">
|
<table class="table table-bordered">
|
||||||
<tr>
|
<tr>
|
||||||
<%= content_tag (:th) do %>
|
<%= content_tag (:th) do %>
|
||||||
<%= t(:category) %>
|
<%= t(:category) %>
|
||||||
|
@ -244,7 +244,7 @@
|
||||||
<%= t("search.too_many",:search_word => params[:search_query],:exceed_num=>@bulletins.count) if (@bulletins.count ==30) %>
|
<%= t("search.too_many",:search_word => params[:search_query],:exceed_num=>@bulletins.count) if (@bulletins.count ==30) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% @bulletins.each do |post| %>
|
<% @bulletins.each do |post| %>
|
||||||
<tr class=<%= cycle('odd', '') %>>
|
<tr class=<%= cycle('odd', '') %>>
|
||||||
<%= content_tag(:th) do%>
|
<%= content_tag(:th) do%>
|
||||||
<td><%= (post.bulletin_category.title rescue nil ) %></td>
|
<td><%= (post.bulletin_category.title rescue nil ) %></td>
|
||||||
|
@ -255,9 +255,10 @@
|
||||||
<td class="date"><%= display_date_time(post.postdate) %></td>
|
<td class="date"><%= display_date_time(post.postdate) %></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<% end %>
|
<% end %>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
<% end %>
|
||||||
<% else %>
|
<% else %>
|
||||||
|
|
||||||
<table class="table table-bordered">
|
<table class="table table-bordered">
|
||||||
|
@ -270,7 +271,7 @@
|
||||||
<% @bulletins.each do |post| %>
|
<% @bulletins.each do |post| %>
|
||||||
<tr>
|
<tr>
|
||||||
<td><%= post.bulletin_category.i18n_variable[I18n.locale] rescue nil %></td>
|
<td><%= post.bulletin_category.i18n_variable[I18n.locale] rescue nil %></td>
|
||||||
<td><%= link_to post.title[I18n.locale], panel_announcement_front_end_bulletin_path(post, :category_id => post.bulletin_category_id) %>
|
<td><%= link_to post.title, panel_announcement_front_end_bulletin_path(post, :category_id => post.bulletin_category_id) %>
|
||||||
<%#= link_to post.title, panel_announcement_back_end_bulletin_path(post) %>
|
<%#= link_to post.title, panel_announcement_back_end_bulletin_path(post) %>
|
||||||
</td>
|
</td>
|
||||||
<td><%= display_date_time(post.postdate) %></td>
|
<td><%= display_date_time(post.postdate) %></td>
|
||||||
|
|
Loading…
Reference in New Issue