Better indication of the current page in the sidebar.

This commit is contained in:
Chris Eppstein 2010-03-27 23:46:06 -07:00
parent a728474570
commit c2900a184a
2 changed files with 13 additions and 2 deletions

View File

@ -24,7 +24,10 @@ body
ul, ol
list-style-position: inside
padding-left: 10px
.selected
font-weight: bold
a
+hover-link
// Typography
blockquote

View File

@ -61,7 +61,15 @@ def item_tree(item)
end
child_html << "</ol>"
end
%Q{<li><a href="#{default_path(item)}">#{crumb}</a>#{child_html}</li>}
css_class = nil
prefix = nil
suffix = nil
if item.identifier == @item.identifier
css_class = %Q{class="selected"}
prefix = "&raquo;"
suffix = "&laquo;"
end
%Q{<li><a href="#{default_path(item)}"#{css_class}>#{prefix}#{crumb}#{suffix}</a></li>#{child_html}}
end