Show snapshot link in shortlog only if have_snapsho
Signed-off-by: Petr Baudis <pasky@suse.cz> Signed-off-by: Junio C Hamano <junkio@cox.net>
Petr Baudis committed
Oct 6, 2006 at 15:57 UTC
55ff35cb649e77f7633f9a30e9988ecad1371fe5
1 file changed
+4
-2
gitweb/gitweb.perl
+4
-2
@@ -2033,8 +2033,10 @@ sub git_shortlog_body {
2033
print "</td>\n" .
2034
"<td class=\"link\">" .
2035
$cgi->a({-href => href(action=>"commitdiff", hash=>$commit)}, "commitdiff") . " | " .
2036
- $cgi->a({-href => href(action=>"tree", hash=>$commit, hash_base=>$commit)}, "tree") . " | " .
2037
- $cgi->a({-href => href(action=>"snapshot", hash=>$commit)}, "snapshot");
2036
+ $cgi->a({-href => href(action=>"tree", hash=>$commit, hash_base=>$commit)}, "tree");
2037
+ if (gitweb_have_snapshot()) {
2038
+ print " | " . $cgi->a({-href => href(action=>"snapshot", hash=>$commit)}, "snapshot");
2039
+ }
2040
print "</td>\n" .
2041
"</tr>\n";
2042
}