Toggle line color for announcement frontend

This commit is contained in:
Christophe Vilayphiou 2012-08-04 16:16:28 +08:00
parent 6a94d4f550
commit 5fc679e0ca
1 changed files with 6 additions and 6 deletions

View File

@ -21,12 +21,12 @@
<%= t("search.result_get",:search_word => params[:search_query],:item_num=>@bulletins.count) %>
<% end %>
<% @bulletins.each do |post| %>
<tr>
<td><%= (post.bulletin_category.title rescue nil ) if !params[:search_query].blank? %></td>
<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) %>
</td>
<td><%= display_date_time(post.postdate) %></td>
<tr class=<%= cycle('odd', '') %>>
<td><%= (post.bulletin_category.title rescue nil ) if !params[:search_query].blank? %></td>
<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) %>
</td>
<td><%= display_date_time(post.postdate) %></td>
</tr>
<% end %>