<% @table_fields.each do |f| %> <%= thead(f) %> <% end %> <% @pages.each do |page| %> <% end %>
<%= page.page_id %> <%= page.name %>
<%= page.page_contexts.last.version rescue nil %> <%= format_value page.page_contexts.last.updated_at rescue nil %> <%= User.find(page.page_contexts.last.update_user_id).user_name rescue nil %> <% if can_edit_or_delete?(page) %> <%= select_tag("category_id",options_for_select(@categories, (page.category_id.to_s rescue "")), prompt: t("select_category"), class: "category_select", style: "margin-bottom:0; width:150px;") %> <% end %>
<%= content_tag :div, class: "bottomnav clearfix" do content_tag :div, paginate(@pages), class: "pagination pagination-centered" end %>