<% 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.author %> <%= chapter.page %> <%= chapter.sort_number %>
<% if can_edit_or_delete?(@journal) %>
<%= link_to t("journals.add_chapter"), new_admin_chapter_path(page: params[:page], journal_id: @journal.id), class: "btn btn-primary" %> <%= t('journals.order')%>
<%= content_tag :div, paginate(@chapters), class: "pagination pagination-centered" %>
<% end %>