<%= b.status_for_table %> | <%= b.category.title rescue "" %> |
<% if b.expired? %>
<%= b.title %> <%= t(:expired) %>
<% elsif b.rejected %>
<%= b.title %> <%= t(:rejected) %> : <%= b.rejection_reason rescue "" %>
<% elsif !b.approved? %>
<%= b.title %> <%= t(:pending) %>
<% else %>
<%= b.title %>
<% end %>
|
<%= format_value b.postdate %> | "><%= format_value b.deadline %> | <%= content_tag(:div, image_tag(b.image.file.blank? ? "/assets/news_alt.jpg" : b.image.url), {:class => "img-peview", :rel=>"popover", "data-content"=>"#{image_tag(b.image.file.blank? ? "/assets/news_alt.jpg" : b.image.url)}", "data-trigger"=>"hover", "data-placement"=>"left"}) %> | <% Unit.where({:id => b.unit_id}).each do |u| %> <%= u.name %> <% end %> <% Department.where({:id => b.department}).each do |d| %> -<%= d.name %> <% end %> | <%= b.view_count %> |
" class="footable-row-detail-inner" style="display: none;">
<%= t(:tags) %> :
<% b.tags.each do |tag| %>
<%= tag.name %>
<% end %>
<%= t("news.email_to") %> :
<% b.email_members.each do |member| %>
<%= member.name %>
<% end %>
<% unless b.other_mailaddress.nil? %>
<% b.other_mailaddress.split(',').each do |mailaddress| %>
<%= mailaddress %>
<% end %>
<% end %>
|