Chris Morgan
›
Git
›
gitweb
› commitdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
patch
|
inline
| side by side (parent:
c36a795
)
commit
grep
author
committer
pickaxe
?
search:
re
Bolden the current item in .page_subhead
author
Chris Morgan
<me@chrismorgan.info>
Sat, 8 Jan 2022 05:36:44 +0000
committer
Chris Morgan
<me@chrismorgan.info>
Sat, 8 Jan 2022 06:05:57 +0000
gitweb.cgi
patch
|
blob
|
history
static/gitweb.css
patch
|
blob
|
history
diff --git
a/gitweb.cgi
b/gitweb.cgi
index 515d80cbded1e58b0ed9d2f5e34280752b23f4df..1de74b658fa613e490aea3ac12eb3a6c533fd8e1 100755
(executable)
--- a/
gitweb.cgi
+++ b/
gitweb.cgi
@@
-4432,7
+4432,7
@@
sub git_print_page_nav {
print "<div class=\"page_nav\">\n" .
(join " | ",
map { $_ eq $current ?
print "<div class=\"page_nav\">\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 "<br/>\n$extra" if defined $extra; # pager or formats
print "</div>\n";
} @navs);
print "<br/>\n$extra" if defined $extra; # pager or formats
print "</div>\n";
diff --git
a/static/gitweb.css
b/static/gitweb.css
index 71895a7a2080c63fbe7c276cc6bbb1e6d654be90..bedc4806019e3a72b9ccda97dd25dbc10ff62d63 100644
(file)
--- a/
static/gitweb.css
+++ b/
static/gitweb.css
@@
-76,6
+76,10
@@
div.page_nav a:visited {
color: #0000cc;
}
color: #0000cc;
}
+.page_nav .current {
+ font-weight: bold;
+}
+
div.page_path {
padding: 8px;
font-weight: bold;
div.page_path {
padding: 8px;
font-weight: bold;