<% @table_fields.each do |f| %> <%= thead(f) %> <% end %> <% @custom_bulletins.each do |b| %> <% end %>
<%= b.status_for_table %> <%= 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("custom_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.custom_bulletin_comments.count.to_s,"/#{I18n.locale}/admin/custom_announcements/#{params[:custom_module]}#{params[:bind_uid].present? ? ('-'+params[:bind_uid]) : ''}/#{b.id}/comment" %> <%= b.update_user.user_name rescue ""%>
" 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("custom_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(@custom_bulletins), class: "pagination pagination-centered") + content_tag(:div, link_to(t(:new_),(params[:custom_module].blank? ? "#{@module_app.key.pluralize}/new" : "#{params[:custom_module]}#{params[:bind_uid].present? ? ('-'+params[:bind_uid]) : ''}/new"), :class=>"btn btn-primary"), class: "pull-right") end %>