Skip to content

Commit

Permalink
gitweb: Remove redundant "tree" link
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Luben Tuikov authored and Junio C Hamano committed Sep 27, 2006
1 parent 4de741b commit 0fa105e
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions gitweb/gitweb.perl
Original file line number Diff line number Diff line change
Expand Up @@ -1631,18 +1631,14 @@ sub git_print_tree_entry {
print "</td>\n";

} elsif ($t->{'type'} eq "tree") {
print "<td class=\"list\">" .
$cgi->a({-href => href(action=>"tree", hash=>$t->{'hash'},
file_name=>"$basedir$t->{'name'}", %base_key)},
esc_html($t->{'name'})) .
"</td>\n" .
"<td class=\"link\">" .
$cgi->a({-href => href(action=>"tree", hash=>$t->{'hash'},
print "<td class=\"list\">";
print $cgi->a({-href => href(action=>"tree", hash=>$t->{'hash'},
file_name=>"$basedir$t->{'name'}", %base_key)},
"tree");
esc_html($t->{'name'}));
print "</td>\n";
print "<td class=\"link\">";
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");
}
Expand Down

0 comments on commit 0fa105e

Please sign in to comment.