From: Eric Wong <e@80x24.org>
To: olddoc-public@80x24.org
Cc: Eric Wong <e@80x24.org>
Subject: [PATCH 1/4] bold class bar to highlight current page
Date: Thu, 7 Jan 2016 01:36:33 +0000 [thread overview]
Message-ID: <20160107013636.9998-2-e@80x24.org> (raw)
In-Reply-To: <20160107013636.9998-1-e@80x24.org>
This matches the behavior of the normal (non-RDoc) page bar.
---
| 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
--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
--
EW
next prev parent reply other threads:[~2016-01-07 1:36 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-07 1:36 [PATCH 0/4] bunch of updates for 1.2 Eric Wong
2016-01-07 1:36 ` Eric Wong [this message]
2016-01-07 1:36 ` [PATCH 2/4] copyright updates for 2016 Eric Wong
2016-01-07 1:36 ` [PATCH 3/4] tail: shorten the footer section Eric Wong
2016-01-07 1:36 ` [PATCH 4/4] head: use old-style <meta> tags for compatibility Eric Wong
2016-01-07 3:37 ` [PATCH 5/4] nodoc some internals Eric Wong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://80x24.org/olddoc/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160107013636.9998-2-e@80x24.org \
--to=e@80x24.org \
--cc=olddoc-public@80x24.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/olddoc.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).