compass/doc-src/layouts/partials/sidebar/item.haml

5 lines
241 B
Plaintext
Raw Normal View History

2010-11-20 16:23:06 +00:00
- classes = [("selected" if @selected), ("deprecated" if @current_item[:deprecated]), ("beta" if @current_item[:beta])].compact.join(" ")
2010-11-04 06:09:19 +00:00
%li{:class => classes}
%a{:href => default_path(@current_item), :class => classes}
%span= @crumb