gitweb: make search help link less ugly
authorTony Finch <dot@dotat.at>
Tue, 20 Aug 2013 16:59:54 +0000 (17:59 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 20 Aug 2013 20:00:57 +0000 (13:00 -0700)
The search help link was a superscript question mark right next to
a drop-down menu, which looks misaligned and is a cramped and
awkward click target. Remove the superscript tags and add some
spacing to fix these nits. Add a title attribute to provide an
explanatory mouseover.

Signed-off-by: Tony Finch <dot@dotat.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
gitweb/gitweb.perl
index c029b981196db156d568b1c4e6629373728b110d..b80a7f10ccec29425c7f9ab74ecdd2cd0bc2bbfc 100755 (executable)
@@ -4030,8 +4030,8 @@ sub print_search_form {
              $cgi->input({-name=>"h", -value=>$search_hash, -type=>"hidden"}) . "\n" .
              $cgi->popup_menu(-name => 'st', -default => 'commit',
                               -values => ['commit', 'grep', 'author', 'committer', 'pickaxe']) .
-             $cgi->sup($cgi->a({-href => href(action=>"search_help")}, "?")) .
-             " search:\n",
+             " " . $cgi->a({-href => href(action=>"search_help"),
+                            -title => "search help" }, "?") . " search:\n",
              $cgi->textfield(-name => "s", -value => $searchtext, -override => 1) . "\n" .
              "<span title=\"Extended regular expression\">" .
              $cgi->checkbox(-name => 'sr', -value => 1, -label => 're',