Sha256: b272fe56788c89872c342dfacd06cf54de3ec6ad27ab60f07ca01cf9acf15fbf
Contents?: true
Size: 899 Bytes
Versions: 2
Compression:
Stored size: 899 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, 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") %> <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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
trestle-0.9.1 | app/views/trestle/resource/index.html.erb |
trestle-0.9.0 | app/views/trestle/resource/index.html.erb |