Skip to content

Instantly share code, notes, and snippets.

@BDQ
Created July 28, 2011 17:07
Show Gist options
  • Save BDQ/1111969 to your computer and use it in GitHub Desktop.
Save BDQ/1111969 to your computer and use it in GitHub Desktop.
<% if !current_page?("/") && @taxon.present? %>
<% seperator = raw("&nbsp;&raquo;&nbsp;") %>
<div id="breadcrumbs" data-hook>
<ul>
<li data-hook="home"><%= link_to t(:home) , root_path %><%= seperator %></li>
<li data-hook="products"><%= link_to(t('products') , products_path) %><%= seperator %></li>
<% @taxon.ancestors.each do |taxon| %>
<li data-hook="ancestor"><%= link_to taxon.name , seo_url(taxon) %><%= seperator %></li>
<% end %>
<li data-hook="taxon"><span><%= @taxon.name %></span></li>
</ul>
<br class="clear">
</div>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment