Sha256: bf707228f15a4de05fc2444d6e528fd27ebedc8255f4aa07bc1d54ec94299cc0

Contents?: true

Size: 687 Bytes

Versions: 2

Compression:

Stored size: 687 Bytes

Contents

<%#
    name: 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

2 entries across 2 versions & 1 rubygems

Version Path
headmin-0.1.2 app/views/headmin/heading/_title.html.erb
headmin-0.1.1 app/views/headmin/heading/_title.html.erb