From abe2c822ef6f7eaa469c7616600cb5194f7d2d1c Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Fri, 14 Oct 2011 18:28:45 +0200 Subject: [PATCH] cosmetic --- gitweb/gitweb.cgi | 10 +++++----- gitweb/gitweb.css | 17 ++++++++++++++--- 2 files changed, 19 insertions(+), 8 deletions(-) diff --git a/gitweb/gitweb.cgi b/gitweb/gitweb.cgi index b8ad9cc..e002db9 100755 --- a/gitweb/gitweb.cgi +++ b/gitweb/gitweb.cgi @@ -1442,7 +1442,7 @@ sub format_snapshot_links { snapshot_format=>$fmt ), -title => "in format: $known_snapshot_formats{$fmt}{'display'}" - }, "snapshot"); + }, "tar"); } else { # $num_fmts == 0 return undef; } @@ -3631,15 +3631,15 @@ sub git_shortlog_body { $alternate ^= 1; my $author = chop_and_escape_str($co{'author_name'}, 10); # git_summary() used print "$co{'age_string'}\n" . - print "$co{'age_string_date'}\n" . + print "$co{'age_string_date'}\n" . "" . $author . "\n" . ""; print format_subject_html($co{'title'}, $co{'title_short'}, href(action=>"commit", hash=>$commit), $ref); print "\n" . "" . - $cgi->a({-href => href(action=>"commit", hash=>$commit)}, substr($commit,0,8)) . " | " . - $cgi->a({-href => href(action=>"commitdiff", hash=>$commit)}, "commitdiff") . " | " . + $cgi->a({-class=>"commit",-href => href(action=>"commit", hash=>$commit)}, substr($commit,0,8)) . " | " . + $cgi->a({-href => href(action=>"commitdiff", hash=>$commit)}, "diff") . " | " . $cgi->a({-href => href(action=>"tree", hash=>$commit, hash_base=>$commit)}, "tree"); my $snapshot_links = format_snapshot_links($commit); if (defined $snapshot_links) { @@ -3740,7 +3740,7 @@ sub git_tags_body { } $alternate ^= 1; if (defined $tag{'age'}) { - print "$tag{'age'}\n"; + print "$tag{'age'}\n"; } else { print "\n"; } diff --git a/gitweb/gitweb.css b/gitweb/gitweb.css index c14d7e8..48932ba 100644 --- a/gitweb/gitweb.css +++ b/gitweb/gitweb.css @@ -71,16 +71,27 @@ td, th { td.link,td.link>a, td.selflink,td.selflink>a, -table.shortlog>tr>td:first-child, -table.tags>tr>td:first-child, table.heads>tr>td:first-child { font-size: 12px; font-family: times; padding: 2px; } +td.selflink>a.commit, td.link>a.commit { + font-size: 16px; + font-family: times; + padding: 2px; +} + +td.age { + font-size: 14px; + font-family: times; + padding: 2px; + font-style: italic; +} + .page_nav br { - display: none; + display: none; } /* Page Header -- 2.43.0