app/views/trestle/resource/index.html.erb in trestle-0.9.8 vs app/views/trestle/resource/index.html.erb in trestle-0.10.0.pre

- old
+ new

@@ -7,19 +7,21 @@ <% content_for(:utilities) do %> <%= render "scopes" %> <% 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 %> + <%= index_turbo_frame 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 %> + <%= render "trestle/table/table", table: admin.table, collection: collection %> - <footer class="main-content-footer"> - <%= hook("resource.index.footer") %> + <footer class="main-content-footer"> + <%= hook("resource.index.footer") %> - <%= pagination collection: collection, entry_name: admin.model_name, remote: admin.pagination_options[:ajax] %> - </footer> + <%= pagination collection: collection, entry_name: admin.model_name, remote: admin.pagination_options[:ajax] %> + </footer> + <% end %> <% end %>