Sha256: e0cf8fbcf5076c67b7ecc86f07159c64add5dadc9e076dca4b03b04f6d861840

Contents?: true

Size: 715 Bytes

Versions: 4

Compression:

Stored size: 715 Bytes

Contents

<% content_for(:title) do %>
  <%= display_resource_name(page.resource_name) %>
<% end %>

<header class="main-content__header">
  <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 accessible_action?(new_resource, :new) %>
  </div>
</header>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
administrate-1.0.0.beta1 app/views/administrate/application/_index_header.html.erb
administrate-0.20.1 app/views/administrate/application/_index_header.html.erb
administrate-0.20.0 app/views/administrate/application/_index_header.html.erb
administrate-0.19.0 app/views/administrate/application/_index_header.html.erb