From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-2.7 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00 shortcircuit=no autolearn=unavailable version=3.3.2 X-Original-To: olddoc-public@80x24.org Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id C705D20208; Thu, 7 Jan 2016 01:36:39 +0000 (UTC) From: Eric Wong To: olddoc-public@80x24.org Cc: Eric Wong Subject: [PATCH 1/4] bold class bar to highlight current page Date: Thu, 7 Jan 2016 01:36:33 +0000 Message-Id: <20160107013636.9998-2-e@80x24.org> In-Reply-To: <20160107013636.9998-1-e@80x24.org> References: <20160107013636.9998-1-e@80x24.org> List-Id: 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 -- EW