From: Luben Tuikov Date: Tue, 26 Sep 2006 19:45:37 +0000 (-0700) Subject: gitweb: Remove redundant "tree" link X-Git-Url: https://git.ladys.computer/Gitweb/commitdiff_plain/149d015b5192ecde008b8f502e05d3c3c9d9fd79b1f894fe807651e4a2f7f828 gitweb: Remove redundant "tree" link In "tree" view, remove redundant "tree" link in the tree listing. It is identical to simply clicking on the tree entry itself. Signed-off-by: Luben Tuikov Signed-off-by: Junio C Hamano --- diff --git a/gitweb.perl b/gitweb.perl index ca63d57..54ec440 100755 --- a/gitweb.perl +++ b/gitweb.perl @@ -1631,18 +1631,14 @@ sub git_print_tree_entry { print "\n"; } elsif ($t->{'type'} eq "tree") { - print "" . - $cgi->a({-href => href(action=>"tree", hash=>$t->{'hash'}, - file_name=>"$basedir$t->{'name'}", %base_key)}, - esc_html($t->{'name'})) . - "\n" . - "" . - $cgi->a({-href => href(action=>"tree", hash=>$t->{'hash'}, + print ""; + print $cgi->a({-href => href(action=>"tree", hash=>$t->{'hash'}, file_name=>"$basedir$t->{'name'}", %base_key)}, - "tree"); + esc_html($t->{'name'})); + print "\n"; + print ""; if (defined $hash_base) { - print " | " . - $cgi->a({-href => href(action=>"history", hash_base=>$hash_base, + print $cgi->a({-href => href(action=>"history", hash_base=>$hash_base, file_name=>"$basedir$t->{'name'}")}, "history"); }