From fd5f71b2548891b1692425ca861b557faca9e404 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 6 Jan 2016 19:51:00 +0000 Subject: bold class bar to highlight current page This matches the behavior of the normal (non-RDoc) page bar. --- lib/oldweb/_sidebar_classes.rhtml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/oldweb/_sidebar_classes.rhtml b/lib/oldweb/_sidebar_classes.rhtml index 66f7fbf..0622dbc 100644 --- a/lib/oldweb/_sidebar_classes.rhtml +++ b/lib/oldweb/_sidebar_classes.rhtml @@ -19,8 +19,12 @@ unless @modsort.empty? else parts.shift end + name = parts.join('::') + if defined?(current) && current == mod + name = "#{name}" + end %><%= parts.join('::') %> +href="<%= rel_prefix %><%= mod.path %>"><%= name %> <% end end -- cgit v1.2.3-24-ge0c7