From: Chris Morgan Date: Sat, 8 Jan 2022 05:36:44 +0000 (+1100) Subject: Bolden the current item in .page_subhead X-Git-Url: https://git.chrismorgan.info/gitweb/commitdiff_plain/3cca22ac8cb362e0187b9a609355db662b23f158?ds=sidebyside Bolden the current item in .page_subhead --- diff --git a/gitweb.cgi b/gitweb.cgi index 515d80c..1de74b6 100755 --- a/gitweb.cgi +++ b/gitweb.cgi @@ -4432,7 +4432,7 @@ sub git_print_page_nav { print "
\n" . (join " | ", map { $_ eq $current ? - $_ : $cgi->a({-href => ($arg{$_}{_href} ? $arg{$_}{_href} : href(%{$arg{$_}}))}, "$_") + $cgi->span({-class => "current"}, $_) : $cgi->a({-href => ($arg{$_}{_href} ? $arg{$_}{_href} : href(%{$arg{$_}}))}, "$_") } @navs); print "
\n$extra" if defined $extra; # pager or formats print "
\n"; diff --git a/static/gitweb.css b/static/gitweb.css index 71895a7..bedc480 100644 --- a/static/gitweb.css +++ b/static/gitweb.css @@ -76,6 +76,10 @@ div.page_nav a:visited { color: #0000cc; } +.page_nav .current { + font-weight: bold; +} + div.page_path { padding: 8px; font-weight: bold;