diff options
author | Luben Tuikov <ltuikov@yahoo.com> | 2006-09-26 12:45:37 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-09-26 23:47:10 -0700 |
commit | 0fa105e7f140fc381ea3cbb776465aacefa22265 (patch) | |
tree | 0a2836ae27b71b799d632efc4ce4002b1dd49902 /gitweb | |
parent | 4de741b3e1be564233f0de2c6915a859264fe9b0 (diff) | |
download | git-0fa105e7f140fc381ea3cbb776465aacefa22265.tar.gz git-0fa105e7f140fc381ea3cbb776465aacefa22265.tar.xz |
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>
Diffstat (limited to 'gitweb')
-rwxr-xr-x | gitweb/gitweb.perl | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index c7ab3b64c..fa8a65a80 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -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"); } |