Sha256: 65a97b18a04eb751a5c10baf5db14d88005d666d665ab95b4d5d6b038bb7ba50

Contents?: true

Size: 884 Bytes

Versions: 4

Compression:

Stored size: 884 Bytes

Contents

<% 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, 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") %>
    <header class="main-content-header">
      <%= hook("resource.index.header") %>
    </header>
  <% end %>

  <%= render "trestle/table/table", table: admin.table, collection: collection %>

  <footer class="main-content-footer">
    <%= hook("resource.index.footer") %>

    <%= render "trestle/table/pagination", collection: collection, entry_name: admin.model_name %>
  </footer>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
trestle-0.8.13 app/views/trestle/resource/index.html.erb
trestle-0.8.12 app/views/trestle/resource/index.html.erb
trestle-0.8.11 app/views/trestle/resource/index.html.erb
trestle-0.8.10 app/views/trestle/resource/index.html.erb