<% content_for(:title, admin.t("titles.index", default: "Listing %{pluralized_model_name}")) %> <% toolbar(:primary) do |t| %> <%= t.new %> <% end %> <% content_for(:utilities) do %> <%= render "scopes" if admin.scopes.any? %> <% end if admin.scopes.any? %> <%= render layout: "layout" do %> <% if hook?("resource.index.header") %>
<%= hook("resource.index.header") %>
<% end %> <%= render "trestle/table/table", table: admin.table, collection: collection %> <% end %>