From 682961c162ce60b25749e02a0c4de44dc7dda917 Mon Sep 17 00:00:00 2001 From: Tony Finch Date: Tue, 20 Aug 2013 17:59:02 +0100 Subject: gitweb: ensure OPML text fits inside its box The rss_logo CSS style has a fixed width which is too narrow for the string "OPML". Replace the fixed width with horizontal padding so the text fits with nice margins. Signed-off-by: Tony Finch Signed-off-by: Junio C Hamano --- gitweb/static/gitweb.css | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gitweb') diff --git a/gitweb/static/gitweb.css b/gitweb/static/gitweb.css index cb86d2d029..a869be144d 100644 --- a/gitweb/static/gitweb.css +++ b/gitweb/static/gitweb.css @@ -548,8 +548,7 @@ a.linenr { a.rss_logo { float: right; - padding: 3px 0px; - width: 35px; + padding: 3px 5px; line-height: 10px; border: 1px solid; border-color: #fcc7a5 #7d3302 #3e1a01 #ff954e; -- cgit v1.2.3 From 1201f0a76cbc006566532577c1cc9123412ecdab Mon Sep 17 00:00:00 2001 From: Tony Finch Date: Tue, 20 Aug 2013 17:59:03 +0100 Subject: gitweb: vertically centre contents of page footer Signed-off-by: Tony Finch Signed-off-by: Junio C Hamano --- gitweb/static/gitweb.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gitweb') diff --git a/gitweb/static/gitweb.css b/gitweb/static/gitweb.css index a869be144d..3b4d833823 100644 --- a/gitweb/static/gitweb.css +++ b/gitweb/static/gitweb.css @@ -68,12 +68,13 @@ div.page_path { } div.page_footer { - height: 17px; + height: 22px; padding: 4px 8px; background-color: #d9d8d1; } div.page_footer_text { + line-height: 22px; float: left; color: #555555; font-style: italic; -- cgit v1.2.3 From 860ccc605da1d40c0331113eb552151fa925002e Mon Sep 17 00:00:00 2001 From: Tony Finch Date: Tue, 20 Aug 2013 17:59:44 +0100 Subject: gitweb: omit the repository owner when it is unset On the repository summary page, leave the owner line out if the repo does not have an owner, rather than displaying a labelled empty field. This does not affect the owner column in the projects list page, which is present unless $omit_owner is true. Signed-off-by: Tony Finch Signed-off-by: Junio C Hamano --- gitweb/gitweb.perl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gitweb') diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index 8d69ada042..c029b98119 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -6463,7 +6463,7 @@ sub git_summary { print "
 
\n"; print "\n" . "\n"; - unless ($omit_owner) { + if ($owner and not $omit_owner) { print "\n"; } if (defined $cd{'rfc2822'}) { -- cgit v1.2.3 From af52bd5f58eed99608b4681df91ba0e1beeb81d5 Mon Sep 17 00:00:00 2001 From: Tony Finch Date: Tue, 20 Aug 2013 17:59:54 +0100 Subject: gitweb: make search help link less ugly 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 Signed-off-by: Junio C Hamano --- gitweb/gitweb.perl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gitweb') diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index c029b98119..b80a7f10cc 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -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" . "" . $cgi->checkbox(-name => 'sr', -value => 1, -label => 're', -- cgit v1.2.3
description" . esc_html($descr) . "
owner" . esc_html($owner) . "