Don't put an empty list on the page when there's no bread crumbs.
This commit is contained in:
parent
402a009e4d
commit
88f887938b
@ -1,6 +1,7 @@
|
|||||||
%ol#breadcrumbs
|
- if breadcrumbs_trail.size > 1
|
||||||
- breadcrumbs_trail.each_with_index do |bc, index|
|
%ol#breadcrumbs
|
||||||
- klass = "first" if index == 0
|
- breadcrumbs_trail.each_with_index do |bc, index|
|
||||||
- klass = "last" if index == breadcrumbs_trail.size - 1
|
- klass = "first" if index == 0
|
||||||
%li{:class => klass}= link_to_unless_current((bc[:crumb] || bc[:title]), bc.reps.find { |r| r.name == :default })
|
- klass = "last" if index == breadcrumbs_trail.size - 1
|
||||||
|
%li{:class => klass}= link_to_unless_current((bc[:crumb] || bc[:title]), bc.reps.find { |r| r.name == :default })
|
||||||
|
|
Loading…
Reference in New Issue
Block a user