Sha256: 6439e49ce70568afa6b5c06decffd414fdae5f50422a222932438772718f9274
Contents?: true
Size: 771 Bytes
Versions: 6
Compression:
Stored size: 771 Bytes
Contents
<div id="taxonomies" class="sidebar-item"> <% get_taxonomies.each do |taxonomy| %> <ul class="navigation-list"> <div><li<%== ' class="current"' if @taxon && @taxon == taxonomy.root %>> <%= link_to t("shop_by_taxonomy", :taxonomy => taxonomy.name.singularize), seo_url(taxonomy.root), :class => 'root' %> <% if taxonomy.image %> <%= link_to(image_tag(taxonomy.image.attachment.url(:small)),seo_url(taxonomy.root))%><%end%> </li></div> <% taxonomy.root.children.each do |taxon| %> <li<%== ' class="current"' if @taxon and ([@taxon] + @taxon.ancestors).include?(taxon) %>> <%= link_to taxon.name, seo_url(taxon) %> </li> <% end %> </ul> <% end %> </div>
Version data entries
6 entries across 6 versions & 5 rubygems