From: Petr Baudis Date: Fri, 6 Oct 2006 13:57:52 +0000 (+0200) Subject: Show snapshot link in shortlog only if have_snapsho X-Git-Url: https://git.ladys.computer/Gitweb/commitdiff_plain/7a8be99a13e48a86fdf4c1c282b71c11c1bd0ab109903850e10066b8bd9f1dec Show snapshot link in shortlog only if have_snapsho Signed-off-by: Petr Baudis Signed-off-by: Junio C Hamano --- diff --git a/gitweb.perl b/gitweb.perl index 51149ae..4184265 100755 --- a/gitweb.perl +++ b/gitweb.perl @@ -2105,8 +2105,10 @@ sub git_shortlog_body { print "\n" . "" . $cgi->a({-href => href(action=>"commitdiff", hash=>$commit)}, "commitdiff") . " | " . - $cgi->a({-href => href(action=>"tree", hash=>$commit, hash_base=>$commit)}, "tree") . " | " . - $cgi->a({-href => href(action=>"snapshot", hash=>$commit)}, "snapshot"); + $cgi->a({-href => href(action=>"tree", hash=>$commit, hash_base=>$commit)}, "tree"); + if (gitweb_have_snapshot()) { + print " | " . $cgi->a({-href => href(action=>"snapshot", hash=>$commit)}, "snapshot"); + } print "\n" . "\n"; }