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> </li> </ol> </nav>
Version data entries
11 entries across 11 versions & 1 rubygems