app/views/administrate/application/index.html.erb in administrate-0.16.0 vs app/views/administrate/application/index.html.erb in administrate-0.17.0

- old
+ new

@@ -21,37 +21,17 @@ A boolean that determines if the search bar should be shown. [1]: http://www.rubydoc.info/gems/administrate/Administrate/Page/Collection %> -<% content_for(:title) do %> - <%= display_resource_name(page.resource_name) %> -<% 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_resource", - name: display_resource_name(page.resource_name, singular: true).downcase - ), - [:new, namespace, page.resource_path.to_sym], - class: "button", - ) if valid_action?(:new) && show_action?(:new, new_resource) %> - </div> -</header> +<%= + render("index_header", + resources: resources, + search_term: search_term, + page: page, + show_search_bar: show_search_bar, + ) +%> <section class="main-content__body main-content__body--flush"> <%= render( "collection", collection_presenter: page,