about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-01-06 19:51:00 +0000
committerEric Wong <e@80x24.org>2016-01-07 01:33:32 +0000
commitfd5f71b2548891b1692425ca861b557faca9e404 (patch)
treecd8d688722d73c238fb1c7ddd5e08bd57c246ce1
parent15909b905b3fc81d84560717ddae8c4633d1550e (diff)
downloadolddoc-fd5f71b2548891b1692425ca861b557faca9e404.tar.gz
This matches the behavior of the normal (non-RDoc) page bar.
-rw-r--r--lib/oldweb/_sidebar_classes.rhtml6
1 files changed, 5 insertions, 1 deletions
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 = "<b>#{name}</b>"
+    end
 %><a
-href="<%= rel_prefix %><%= mod.path %>"><%= parts.join('::') %></a>
+href="<%= rel_prefix %><%= mod.path %>"><%= name %></a>
 <%
   end
 end