<% @table_fields.each do |f| %> <%= thead(f) %> <% end %> <% @bulletins.each do |b| %> <% is_editable = can_edit_or_delete?(b) %> <% if @enable_annc_dept %> <% end %> <% end %>
<% if is_editable %><% end %> <%= b.status_for_table %> <%= b.annc_dept ? @annc_depts[b.annc_dept] : '' rescue "" %> <%= b.category.title rescue "" %> <% if (b.category.disable rescue false) %> <%= t(:disabled) %> <% end %> <% if b.expired? || (b.category.disable rescue false)%> <%= b.title.to_s.html_safe %> <% else %> <%= b.title.to_s.html_safe %> <% end %> <% if b.expired? %> <%= t(:expired) %> <% end %> <% if b.reapproval %> <%= t("announcement.reapproval") + " " + t(:pending) %> <% end %> <% if b.rejected %> <%= t(:rejected) %> : <%= b.rejection_reason rescue "" %> <% end %> <% if !b.approved? && !b.rejected %> <%= t(:pending) %> <% end %>
<%= format_value b.postdate %> "><%= format_value b.deadline %> <%= link_to b.bulletin_comments.count.to_s,"/#{I18n.locale}/admin/announcements/#{b.id}/comment" %> <%= b.update_user.user_name rescue ""%>
<%= format_value b.updated_at %>
" class="footable-row-detail-inner" style="display: none;">
<%= t(:view_count) %> : <%= b.view_count %>
<%= t(:tags) %> : <% b.tags.each do |tag| %> <%= tag.name %> <% end %>
<%= t("announcement.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(@bulletins), class: "pagination pagination-centered") + content_tag(:div, link_to(t("archive.delete_selected"), "javascript:void(0)", :class=>"btn btn-primary"), class: "pull-right hide delete_archives_btn") + content_tag(:div, link_to(t(:new_),new_admin_announcement_path, :class=>"btn btn-primary"), class: "pull-right") end %>