<% @table_fields.each do |f| %> <%= thead(f) %> <% end %> <% @news_bulletin.each do |b| %> <% end %>
<%= b.status_for_table %> <%= b.category.title %> <% if b.expired? %> <%= b.title %> <%= t(:expired) %> <% 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 %>
<%= content_tag :div, class: "bottomnav clearfix" do content_tag :div, paginate(@news_bulletin), class: "pagination pagination-centered" end %> <% content_for :page_specific_css do %> <% end %> <% content_for :page_specific_javascript do %> <% end %>