compass/doc-src/layouts/partials/breadcrumbs.haml
2010-01-24 16:06:34 -08:00

6 lines
285 B
Plaintext

%ol#breadcrumbs
- breadcrumbs_trail.each_with_index do |bc, index|
- 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 })