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>
This commit is contained in:
Luben Tuikov 2006-09-26 12:45:37 -07:00 committed by Junio C Hamano
parent 4de741b3e1
commit 0fa105e7f1

View File

@ -1631,18 +1631,14 @@ sub git_print_tree_entry {
print "</td>\n"; print "</td>\n";
} elsif ($t->{'type'} eq "tree") { } elsif ($t->{'type'} eq "tree") {
print "<td class=\"list\">" . print "<td class=\"list\">";
$cgi->a({-href => href(action=>"tree", hash=>$t->{'hash'}, print $cgi->a({-href => href(action=>"tree", hash=>$t->{'hash'},
file_name=>"$basedir$t->{'name'}", %base_key)}, file_name=>"$basedir$t->{'name'}", %base_key)},
esc_html($t->{'name'})) . esc_html($t->{'name'}));
"</td>\n" . print "</td>\n";
"<td class=\"link\">" . print "<td class=\"link\">";
$cgi->a({-href => href(action=>"tree", hash=>$t->{'hash'},
file_name=>"$basedir$t->{'name'}", %base_key)},
"tree");
if (defined $hash_base) { if (defined $hash_base) {
print " | " . print $cgi->a({-href => href(action=>"history", hash_base=>$hash_base,
$cgi->a({-href => href(action=>"history", hash_base=>$hash_base,
file_name=>"$basedir$t->{'name'}")}, file_name=>"$basedir$t->{'name'}")},
"history"); "history");
} }