Sha256: ff1d918ca29c0c5595eec69960c793b85d15cfb4e8d55c57c717dbe00545e7bd

Contents?: true

Size: 681 Bytes

Versions: 10

Compression:

Stored size: 681 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

10 entries across 10 versions & 1 rubygems

Version Path
headmin-0.2.9 app/views/headmin/heading/_title.html.erb
headmin-0.2.8 app/views/headmin/heading/_title.html.erb
headmin-0.2.7 app/views/headmin/heading/_title.html.erb
headmin-0.2.6 app/views/headmin/heading/_title.html.erb
headmin-0.2.5 app/views/headmin/heading/_title.html.erb
headmin-0.2.4 app/views/headmin/heading/_title.html.erb
headmin-0.2.3 app/views/headmin/heading/_title.html.erb
headmin-0.2.2 app/views/headmin/heading/_title.html.erb
headmin-0.2.1 app/views/headmin/heading/_title.html.erb
headmin-0.2.0 app/views/headmin/heading/_title.html.erb