Sha256: e0cba44192815eb8399b9e189d532dd61775a6889bfc9aba2ca007fd9c2cbe96

Contents?: true

Size: 826 Bytes

Versions: 1

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

1 entries across 1 versions & 1 rubygems

Version Path
headmin-0.5.2 app/views/headmin/_breadcrumbs.html.erb