<% content_for(:title, admin.t("titles.index", default: "Listing %{pluralized_model_name}")) %> <% toolbar(:primary) do |t| %> <%= t.link admin.t("buttons.new", default: "New %{model_name}"), action: :new, style: :light, icon: "fa fa-plus", class: "btn-new-resource" if admin.actions.include?(: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 %>