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,4 +1,5 @@
|
|||||||
%ol#breadcrumbs
|
- if breadcrumbs_trail.size > 1
|
||||||
|
%ol#breadcrumbs
|
||||||
- breadcrumbs_trail.each_with_index do |bc, index|
|
- breadcrumbs_trail.each_with_index do |bc, index|
|
||||||
- klass = "first" if index == 0
|
- klass = "first" if index == 0
|
||||||
- klass = "last" if index == breadcrumbs_trail.size - 1
|
- klass = "last" if index == breadcrumbs_trail.size - 1
|
||||||
|
Loading…
Reference in New Issue
Block a user