diff options
author | Eric Wong <e@80x24.org> | 2022-10-04 19:12:40 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2022-10-05 21:15:50 +0000 |
commit | ffea66b1a6c5c9d501c42aa7605cf81d49d3c9b1 (patch) | |
tree | a0f6208066760ac1ee6ff3510a1496d98b71a05f /lib | |
parent | 5afdc69bf871ab74780b2ae59d5ca37b85840836 (diff) | |
download | public-inbox-ffea66b1a6c5c9d501c42aa7605cf81d49d3c9b1.tar.gz |
This needs to be expanded, but quick links to heads/tags/README shouldn't hurt...
Diffstat (limited to 'lib')
-rw-r--r-- | lib/PublicInbox/WwwCoderepo.pm | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/PublicInbox/WwwCoderepo.pm b/lib/PublicInbox/WwwCoderepo.pm index fb510b28..6c119b28 100644 --- a/lib/PublicInbox/WwwCoderepo.pm +++ b/lib/PublicInbox/WwwCoderepo.pm @@ -55,8 +55,16 @@ sub summary_finish { # git log my @r = split(/\n/s, pop(@x) // ''); my $last = pop(@r) if scalar(@r) > $ctx->{wcr}->{summary_log}; - print $zfh '<pre><a id=log>$</a> '. - "git log --pretty=format:'%h %s (%cs)%d'\n"; + print $zfh <<EOM; +<pre> +<a +href='#readme'>about</a> <a +href='#heads'>heads</a> <a +href='#tags'>tags</a> + +<a +id=log>\$</a> git log --pretty=format:'%h %s (%cs)%d' +EOM for (@r) { my $d; # decorations s/^ \(([^\)]+)\)// and $d = $1; |