From: Luben Tuikov Date: Thu, 5 Oct 2006 19:22:57 +0000 (-0700) Subject: gitweb: Do not print "log" and "shortlog" redundantly in commit view X-Git-Url: https://git.ladys.computer/Gitweb/commitdiff_plain/f10a555a2b70317b292d69f0413684380a48b539e2b0528a84614b82715f99b3 gitweb: Do not print "log" and "shortlog" redundantly in commit view Do not print "log" and "shortlog" redundantly in commit view. This is passed into the $extra argument of git_print_page_nav from git_commit, but git_print_page_nav prints "log" and "shortlog" already with the same head. Noticed by Junio. Signed-off-by: Luben Tuikov Signed-off-by: Junio C Hamano --- diff --git a/gitweb.perl b/gitweb.perl index 60f77c3..7224983 100755 --- a/gitweb.perl +++ b/gitweb.perl @@ -3017,11 +3017,6 @@ sub git_commit { $cgi->a({-href => href(action=>"blame", hash_parent=>$parent, file_name=>$file_name)}, "blame"); } - if (defined $co{'parent'}) { - push @views_nav, - $cgi->a({-href => href(action=>"shortlog", hash=>$hash)}, "shortlog"), - $cgi->a({-href => href(action=>"log", hash=>$hash)}, "log"); - } git_header_html(undef, $expires); git_print_page_nav('commit', defined $co{'parent'} ? '' : 'commitdiff', $hash, $co{'tree'}, $hash,