]> Lady’s Gitweb - Gitweb/commitdiff
Show snapshot link in shortlog only if have_snapsho
authorPetr Baudis <redacted>
Fri, 6 Oct 2006 13:57:52 +0000 (15:57 +0200)
committerLady <redacted>
Mon, 6 Apr 2026 04:07:10 +0000 (00:07 -0400)
Signed-off-by: Petr Baudis <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl

index 51149ae1587d022524948224a93bcdfde3777c24ed73bb5e035a82ce38d735fd..41842652a4dbfc93e28b98fde33da4122145bc97c567d1daadac2242fac3ffa0 100755 (executable)
@@ -2105,8 +2105,10 @@ sub git_shortlog_body {
                print "</td>\n" .
                      "<td class=\"link\">" .
                      $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 "</td>\n" .
                      "</tr>\n";
        }
This page took 0.236402 seconds and 4 git commands to generate.