Sha256: 53013e2f86bad7df66744b270b525f26890477e62f0966cac7771530010cd657

Contents?: true

Size: 543 Bytes

Versions: 1

Compression:

Stored size: 543 Bytes

Contents

<% max_level = Spree::Config[:max_level_in_taxons_menu] || 1 %>

<nav class="taxonomies">
  <%= link_to 'All', products_path %>
  <% cache [I18n.locale, taxonomies, max_level] do %>
    <% taxonomies.each do |taxonomy| %>
      <% cache [I18n.locale, taxonomy, @taxon, max_level] do %>
        <%= render(
          'spree/components/navigation/taxons_tree',
          root: taxonomy.root,
          current: @taxon,
          depth: max_level,
          base_class: 'taxonomy') if taxonomy %>
      <% end %>
    <% end %>
  <% end %>
</nav>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
solidus_starter_frontend-0.1.0 app/views/spree/components/navigation/_taxons.html.erb