diff options
author | Eric Wong <e@80x24.org> | 2017-03-02 23:39:49 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2017-03-02 23:39:49 +0000 |
commit | 16b1fbe36cc39a351ef9810b9018d36df833a941 (patch) | |
tree | 6a354e1ab5177993fb11bd5ae0e43400d66ffbce /lib/PublicInbox/RepoGitSummary.pm | |
parent | a4df292ed39f6e02a7d57326f291583339cb562d (diff) | |
download | public-inbox-16b1fbe36cc39a351ef9810b9018d36df833a941.tar.gz |
This is shorter, and makes more sense as the endpoint displays both tree listings and actual blob sources. This will also make rewriting existing URLs from cgit installations easier.
Diffstat (limited to 'lib/PublicInbox/RepoGitSummary.pm')
-rw-r--r-- | lib/PublicInbox/RepoGitSummary.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/RepoGitSummary.pm b/lib/PublicInbox/RepoGitSummary.pm index 5eb8087d..96ae9be9 100644 --- a/lib/PublicInbox/RepoGitSummary.pm +++ b/lib/PublicInbox/RepoGitSummary.pm @@ -84,14 +84,14 @@ sub readme_path_links { my ($req, $rel, $readme) = @_; my @path = split(m!/+!, $readme); my $tip = $req->{-repo}->tip; - my $s = "tree <a\nhref=\"${rel}tree/$tip\">root</a>/"; + my $s = "tree <a\nhref=\"${rel}src/$tip\">root</a>/"; my @t; $s .= join('/', (map { push @t, $_; my $e = PublicInbox::Hval->utf8($_, join('/', @t)); my $ep = $e->as_path; my $eh = $e->as_html; - $e = "<a\nhref=\"${rel}tree/$tip/$ep\">$eh</a>"; + $e = "<a\nhref=\"${rel}src/$tip/$ep\">$eh</a>"; # bold the last one scalar(@t) == scalar(@path) ? "<b>$e</b>" : $e; } @path)); |