Sha256: b0f6ea6aa7796e5e1ea01be012e0ea186cf93d4ce58131d1d399fd8ef652fee7
Contents?: true
Size: 939 Bytes
Versions: 4
Compression:
Stored size: 939 Bytes
Contents
<% cache ['taxonomies', @taxon], :expires_in => SHORT_INTERVAL do %> <div class="span3"> <% get_taxonomies.each do |taxonomy| %> <ul class="breadcrumb"> <li><%= link_to taxonomy.name, seo_url(taxonomy.root) %></li> </ul> <div class="span3 product_list"> <ul class="nav"> <% taxonomy.root.children.each do |taxon| %> <li> <%= link_to taxon.name, seo_url(taxon), :class => ("active" if @taxon and ([@taxon] + @taxon.ancestors).include?(taxon)) %> <% if taxon.children.any? %> <ul> <% taxon.children.each do |t| %> <li><%= link_to " - #{t.name} (#{t.products.count})", seo_url(t), :class => ("active" if @taxon == t) %></li> <% end %> </ul> <% end %> </li> <% end %> </ul> </div> <% end %> </div> <% end %>
Version data entries
4 entries across 4 versions & 1 rubygems