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 <ltuikov@yahoo.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Luben Tuikov committed
Sep 26, 2006 at 12:45 UTC
0fa105e7f140fc381ea3cbb776465aacefa22265
1 file changed
+6
-10
gitweb/gitweb.perl
+6
-10
@@ -1631,18 +1631,14 @@ sub git_print_tree_entry {
1631
print "</td>\n";
1632
1633
} elsif ($t->{'type'} eq "tree") {
1634
- print "<td class=\"list\">" .
1635
- $cgi->a({-href => href(action=>"tree", hash=>$t->{'hash'},
1636
- file_name=>"$basedir$t->{'name'}", %base_key)},
1637
- esc_html($t->{'name'})) .
1638
- "</td>\n" .
1639
- "<td class=\"link\">" .
1640
- $cgi->a({-href => href(action=>"tree", hash=>$t->{'hash'},
1634
+ print "<td class=\"list\">";
1635
+ print $cgi->a({-href => href(action=>"tree", hash=>$t->{'hash'},
1636
file_name=>"$basedir$t->{'name'}", %base_key)},
1642
- "tree");
1637
+ esc_html($t->{'name'}));
1638
+ print "</td>\n";
1639
+ print "<td class=\"link\">";
1640
if (defined $hash_base) {
1644
- print " | " .
1645
- $cgi->a({-href => href(action=>"history", hash_base=>$hash_base,
1641
+ print $cgi->a({-href => href(action=>"history", hash_base=>$hash_base,
1642
file_name=>"$basedir$t->{'name'}")},
1643
"history");
1644
}