app/views/administrate/application/index.html.erb in administrate-0.7.0 vs app/views/administrate/application/index.html.erb in administrate-0.8.0

- old
+ new

@@ -25,29 +25,37 @@ <% content_for(:title) do %> <%= display_resource_name(page.resource_name) %> <% end %> -<% content_for(:search) do %> - <% if show_search_bar %> - <%= render "search", search_term: search_term %> - <% end %> -<% end %> - <header class="main-content__header" role="banner"> <h1 class="main-content__page-title" id="page-title"> <%= content_for(:title) %> </h1> + <% if show_search_bar %> + <%= render( + "search", + search_term: search_term, + resource_name: display_resource_name(page.resource_name) + ) %> + <% end %> + <div> <%= link_to( "#{t("administrate.actions.new")} #{page.resource_name.titleize.downcase}", [:new, namespace, page.resource_path], class: "button", ) if valid_action? :new %> </div> </header> <section class="main-content__body main-content__body--flush"> - <%= render "collection", collection_presenter: page, resources: resources %> + <%= render( + "collection", + collection_presenter: page, + resources: resources, + table_title: "page-title" + ) %> + <%= paginate resources %> </section>