Sha256: 194f5d0ad08e5a8077b23e7b6ea36089e9d9e6998d2833c29240f04b223d843e

Contents?: true

Size: 680 Bytes

Versions: 11

Compression:

Stored size: 680 Bytes

Contents

<%#
    headmin/heading/title
    accepts block: no
    parameters:
      title: (string) Title to be displayed
      new_link: (string) URL to be used a anchor for the new button
      breadcrumbs: (boolean) Whether to render breadcrumbs or not
%>

<% title = local_assigns.has_key?(:title) ? title : nil %>
<% new_link = local_assigns.has_key?(:new_link) ? new_link : nil %>

<div class="h-heading-title">
  <div class="d-flex align-items-center">
    <h1 class="me-2">
      <%= title ? title : t(".new") %>
    </h1>
    <% if new_link %>
      <a href="<%= new_link %>" class="btn btn-outline-primary btn-sm">
        <%= t(".new") %>
      </a>
    <% end %>
  </div>
</div>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
headmin-0.6.3 app/views/headmin/heading/_title.html.erb
headmin-0.6.2 app/views/headmin/heading/_title.html.erb
headmin-0.6.1 app/views/headmin/heading/_title.html.erb
headmin-0.6.0 app/views/headmin/heading/_title.html.erb
headmin-0.5.9 app/views/headmin/heading/_title.html.erb
headmin-0.5.8 app/views/headmin/heading/_title.html.erb
headmin-0.5.7 app/views/headmin/heading/_title.html.erb
headmin-0.5.6 app/views/headmin/heading/_title.html.erb
headmin-0.5.5 app/views/headmin/heading/_title.html.erb
headmin-0.5.4 app/views/headmin/heading/_title.html.erb
headmin-0.5.3 app/views/headmin/heading/_title.html.erb