compass/doc-src/layouts/partials/breadcrumbs.haml

8 lines
350 B
Plaintext
Raw Permalink Normal View History

- if breadcrumbs_trail.size > 1
%ol#breadcrumbs
- breadcrumbs_trail.each_with_index do |bc, index|
2010-04-12 09:46:33 +00:00
- next unless bc
- klass = "first" if index == 0
- 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 })
2010-01-25 00:06:34 +00:00