app/views/administrate/application/index.html.erb in administrate-0.3.0 vs app/views/administrate/application/index.html.erb in administrate-0.4.0

- old
+ new

@@ -15,19 +15,23 @@ An instance of `ActiveRecord::Relation` containing the resources that match the user's search criteria. By default, these resources are passed to the table partial to be displayed. - `search_term`: A string containing the term the user has searched for, if any. +- `show_search_bar`: + 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 %> <% content_for(:search) do %> - <%= render "search", search_term: search_term %> + <% if show_search_bar %> + <%= render "search", search_term: search_term %> + <% end %> <% end %> <header class="header"> <h1 class="header__heading" id="page-title"><%= content_for(:title) %></h1> <div class="header__actions">