Sha256: 2061665a8b65d4841612c4c06e85a9ca7be3489d4d20373773ccf92cf2334fa8

Contents?: true

Size: 826 Bytes

Versions: 11

Compression:

Stored size: 826 Bytes

Contents

<%
  # headmin/breadcrumbs
  #
  # ==== Options
  # * +breadcrumbs</tt> - Object with blocks association
  #
  # ==== Examples
  #   Basic version. This will use the publicly available `breadcrumbs` variable
  #   <%= render "headmin/breadcrumbs" %#>
%>

<nav aria-label="breadcrumb">
  <ol class="breadcrumb">
    <% breadcrumb_count = breadcrumbs.count %>
    <% breadcrumbs.each_with_index do |breadcrumb, index| %>
      <% last = (index == breadcrumb_count - 1) %>
      <li class="breadcrumb-item text-muted" aria-current="<%= last ? "page" : nil %>">
        <% if last %>
          <%= breadcrumb.name %>
        <% else %>
          <%= link_to_unless_current(breadcrumb.name, breadcrumb.path, class: "text-muted text-decoration-none") %>
        <% end %>
      </li>
    <% end %>
    <li>&nbsp;</li>
  </ol>
</nav>

Version data entries

11 entries across 11 versions & 1 rubygems

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