Sha256: 0ee04ff9396078908465cfb3c6afd1ed1c4f9c5859a1286a3c2bac6cde6b4f83

Contents?: true

Size: 571 Bytes

Versions: 1

Compression:

Stored size: 571 Bytes

Contents

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

<nav id="taxonomies" class="sidebar-item" data-hook aria-label="taxonomies">
  <% @taxonomies.each do |taxonomy| %>
    <% cache [I18n.locale, taxonomy, max_level, @taxon] do %>
      <% if taxonomy.root.children.any? %>
        <div class="mt-4">
          <h4 class='taxonomy-root h5'>
            <%= Harpiya.t(:shop_by_taxonomy, taxonomy: taxonomy.name) %>
          </h4>
          <%= taxons_tree(taxonomy.root, @taxon, max_level) %>
        </div>
      <% end %>
    <% end %>
  <% end %>
</nav>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
harpiya_frontend-4.3.0.alpha app/views/harpiya/shared/_taxonomies.html.erb