compass/doc-src/layouts/partials/sidebar/item.haml
2010-11-20 08:26:32 -08:00

5 lines
241 B
Plaintext

- classes = [("selected" if @selected), ("deprecated" if @current_item[:deprecated]), ("beta" if @current_item[:beta])].compact.join(" ")
%li{:class => classes}
%a{:href => default_path(@current_item), :class => classes}
%span= @crumb