Better indication of the current page in the sidebar.
This commit is contained in:
parent
a728474570
commit
c2900a184a
@ -24,7 +24,10 @@ body
|
||||
ul, ol
|
||||
list-style-position: inside
|
||||
padding-left: 10px
|
||||
|
||||
.selected
|
||||
font-weight: bold
|
||||
a
|
||||
+hover-link
|
||||
// Typography
|
||||
|
||||
blockquote
|
||||
|
@ -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 = "»"
|
||||
suffix = "«"
|
||||
end
|
||||
%Q{<li><a href="#{default_path(item)}"#{css_class}>#{prefix}#{crumb}#{suffix}</a></li>#{child_html}}
|
||||
end
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user