<% content_for :page_specific_javascript do %> <%= javascript_include_tag "lib/jquery-ui-sortable.min" %> <% end %> <% content_for :page_specific_css do %> <% end %> <% @table_fields.each do |f| %> <%= thead(f) %> <% end %> <% @chapters.each do |chapter| %> <% end %>
<%= chapter.title %> <% if can_edit_or_delete?(@banner) %> <% end %>
    <% chapter.tags.each do |tag| %>
  • <%= tag.name %>
  • <% end %>
<%= chapter.author %> <%= chapter.page %> <%= chapter.keywords %>
<% if can_edit_or_delete?(@publication) %>
<%= link_to t("publications_.add_chapter"), new_admin_chapter_path(page: params[:page], publication_id: @publication.id), class: "btn btn-primary" %>
<%= content_tag :div, paginate(@chapters), class: "pagination pagination-centered" %>
<% end %>