app/views/administrate/application/index.html.erb in administrate-1.0.0.beta1 vs app/views/administrate/application/index.html.erb in administrate-1.0.0.beta2
- old
+ new
@@ -30,17 +30,25 @@
page: page,
show_search_bar: show_search_bar,
)
%>
-<section class="main-content__body main-content__body--flush">
- <%= render(
- "collection",
- collection_presenter: page,
- collection_field_name: resource_name,
- page: page,
- resources: resources,
- table_title: "page-title"
- ) %>
+<%= content_for(:before_main) %>
- <%= render("pagination", resources: resources) %>
-</section>
+<% if content_for?(:main) %>
+ <%= content_for(:main) %>
+<% else %>
+ <section class="main-content__body main-content__body--flush">
+ <%= render(
+ "collection",
+ collection_presenter: page,
+ collection_field_name: resource_name,
+ page: page,
+ resources: resources,
+ table_title: "page-title"
+ ) %>
+
+ <%= render("pagination", resources: resources) %>
+ </section>
+<% end %>
+
+<%= content_for(:after_main) %>