From: Eric Wong Date: Sun, 3 Jan 2016 11:22:54 +0000 (+0000) Subject: repobrowse: tree view omits plain and log links X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=389d266ebffd9be1005b925b9c4803b8482d608a;p=thirdparty%2Fpublic-inbox.git repobrowse: tree view omits plain and log links No need to clutter up the page with more senseless links few people will follow. The blob view now has plain links for people who want to save a single file, and will have log links added, later. --- diff --git a/lib/PublicInbox/RepoBrowseGitTree.pm b/lib/PublicInbox/RepoBrowseGitTree.pm index 7cab58c98..d5c74e7e6 100644 --- a/lib/PublicInbox/RepoBrowseGitTree.pm +++ b/lib/PublicInbox/RepoBrowseGitTree.pm @@ -145,10 +145,8 @@ sub git_tree_show { $pfx = 'tree/'; } - my $plain_pfx = join('/', "$req->{relcmd}plain", @{$req->{extra}}, ''); - $plain_pfx = PublicInbox::Hval->utf8($plain_pfx)->as_path; local $/ = "\0"; - $fh->write("mode\t\t\tsize\tname\n"); + $fh->write("mode\tsize\tname\n"); while (defined(my $l = <$ls>)) { chomp $l; my ($m, $t, $x, $s, $path) = @@ -168,9 +166,10 @@ sub git_tree_show { elsif ($m eq 'l') { $path = "$path" } $s =~ s/\s+//g; - $fh->write(qq($m\tlog ). - qq(plain) . - qq(\t$s\t$path\n)); + # 'plain' and 'log' links intentionally omitted for brevity + # and speed + $fh->write(qq($m\t). + qq($s\t$path\n)); } $fh->write(''); }