Sha256: 620962687b80d208a3e40978960dae09e34856ac406e84cb4867ad4b03b99447
Contents?: true
Size: 829 Bytes
Versions: 10
Compression:
Stored size: 829 Bytes
Contents
<% # headmin/breadcrumbs # # ==== Options # * <tt>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> </li> </ol> </nav>
Version data entries
10 entries across 10 versions & 1 rubygems