Skip to content

Commit

Permalink
Making the last step in breadcrumbs a link.
Browse files Browse the repository at this point in the history
  • Loading branch information
adhlssu07 authored and radar committed Jan 22, 2012
1 parent 35e0312 commit 2f6bca4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/app/helpers/spree/base_helper.rb
Expand Up @@ -105,7 +105,7 @@ def breadcrumbs(taxon, separator=" » ")
if taxon
crumbs << content_tag(:li, link_to(t(:products) , products_path) + separator)
crumbs << taxon.ancestors.collect { |ancestor| content_tag(:li, link_to(ancestor.name , seo_url(ancestor)) + separator) } unless taxon.ancestors.empty?
crumbs << content_tag(:li, content_tag(:span, taxon.name))
crumbs << content_tag(:li, content_tag(:span, link_to(taxon.name , seo_url(taxon))))
else
crumbs << content_tag(:li, content_tag(:span, t(:products)))
end
Expand Down

0 comments on commit 2f6bca4

Please sign in to comment.