<% @table_fields.each do |f| %> <%= thead(f) %> <% end %> <% user_has_rights = (current_user.is_admin? ? true : (current_user.is_manager?(@module_app) ? true : current_user.is_manager_with_role?(@module_app) ? true : false)) rescue false %> <% @papers.each do |paper| %> <% end %>
<%= paper.category.title rescue "" %> <% if (paper.category.disable rescue false) %> <%= t(:disable) %> <% end %> <%= paper.title %>
<%= paper.period.strftime("%Y-%m-%d") rescue "" %>
<%= content_tag :div, paginate(@papers), class: "pagination pagination-centered" %> <% if user_has_rights %>
<%= t("e_paper.new_paper") %>
<% end %>