Sha256: 6a8364226f8ff4de8f78e1e4f876584495cd63283d194b43ee0ca7517fe68345

Contents?: true

Size: 625 Bytes

Versions: 26

Compression:

Stored size: 625 Bytes

Contents

<nav id="breadcrumbs" class="col-12 mt-1 mt-sm-3 mt-lg-4" aria-label="breadcrumbs">
  <ol class="breadcrumb">
    <li class="breadcrumb-item">
      <span>
        <%= link_to Spree.t(:home), spree.root_path %>
      </span>
    </li>
    <% if @taxon %>
      <% @taxon.ancestors.where.not(parent_id: nil).each do |ancestor| %>
        <li class="breadcrumb-item">
          <%= ancestor.name %>
        </li>
      <% end %>
      <li class="breadcrumb-item">
        <%= @taxon.name %>
      </li>
    <% else %>
      <li class="breadcrumb-item">
        <%= current_page_name %>
      </li>
    <% end %>
  </ol>
</nav>

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
spree_frontend-4.2.0.rc5 app/views/spree/shared/_breadcrumbs.html.erb
spree_frontend-4.2.0.rc4 app/views/spree/shared/_breadcrumbs.html.erb
spree_frontend-4.2.0.rc3 app/views/spree/shared/_breadcrumbs.html.erb
spree_frontend-4.2.0.rc2 app/views/spree/shared/_breadcrumbs.html.erb
spree_frontend-4.2.0.rc1 app/views/spree/shared/_breadcrumbs.html.erb
spree_frontend-4.2.0.beta app/views/spree/shared/_breadcrumbs.html.erb