From f6c5021d9e2bb35e3c57da0df6fd18fc5403f24a Mon Sep 17 00:00:00 2001 From: Stricted Date: Fri, 12 Apr 2013 13:11:59 +0200 Subject: [PATCH] some changes --- gitweb.css | 35 ++++++++++++++++++++--------------- index.cgi | 9 +++++---- 2 files changed, 25 insertions(+), 19 deletions(-) diff --git a/gitweb.css b/gitweb.css index f8c24f0..76948d9 100644 --- a/gitweb.css +++ b/gitweb.css @@ -335,6 +335,13 @@ border: 1px solid White; border: 1px solid #bedce7; padding: 5px; } +.log { + width: 99%; + margin: 0 auto 15px auto; + background: #eaf2f5; + border: 1px solid #bedce7; + padding: 5px; +} .header .age { float: left; @@ -386,7 +393,9 @@ border: 1px solid White; } .patch > .header { - width: 98.5%; + width: 99.3%; + padding: 5px; + margin: 0px; } /* Refs @@ -451,44 +460,40 @@ div.diff.from_file a.path, div.diff.from_file { color: #000000; } -div.diff.extended_header { - white-space: normal; +div.diff.header { + margin-top: 4px; + border: solid #d9d8d1; + border-width: 1px 0px 1px 0px; } div.diff.extended_header, div.diff.extended_header a.path, -div.diff.extended_header a.hash { - color: #777777; -} - +div.diff.extended_header a.hash , div.diff.extended_header .info { + white-space: normal; color: #b0b0b0; -} - -div.diff.extended_header { background-color: #f6f5ee; - padding: 2px 0px 2px 0px; } /* Age ---------------------------------------------------------------------------- */ /* noage: "No commits" */ -.project_list td.noage { +.noage { color: #cdcdcd; } /* age2: 60*60*24*2 <= age */ -.project_list td.age2, .blame td.age2 { +.age2 { color: #545454; } /* age1: 60*60*2 <= age < 60*60*24*2 */ -.project_list td.age1 { +.age1 { color: #009900; } /* age0: age < 60*60*2 */ -.project_list td.age0 { +.age0 { color: #009900; font-weight: bold; } diff --git a/index.cgi b/index.cgi index 480818d..505299e 100644 --- a/index.cgi +++ b/index.cgi @@ -3878,7 +3878,9 @@ sub git_print_log { $signoff = 1; $empty = 0; if (! $opts{'-remove_signoff'}) { + print "
\n"; print "" . esc_html($line) . "
\n"; + print "
\n"; next; } else { # remove signoff lines @@ -3899,7 +3901,6 @@ sub git_print_log { print format_log_line_html($line) . "
\n"; } - if ($opts{'-final_empty_line'}) { # end with single empty line print "
\n" unless $empty; @@ -4100,11 +4101,11 @@ sub git_difftree_body { my ($difftree, $hash, @parents) = @_; my ($parent) = $parents[0]; my $have_blame = gitweb_check_feature('blame'); - print "
\n"; if ($#{$difftree} > 10) { + print "
\n"; print(($#{$difftree} + 1) . " files changed:\n"); + print "
\n"; } - print "
\n"; print " 1 ? "combined " : "") . @@ -4810,7 +4811,7 @@ sub git_shortlog_body { print ""; # git_summary() used print "\n" . - print "\n" . + print "\n" . format_author_html('td', \%co, 10) . "
$co{'age_string'}$co{'age_string_date'}$co{'age_string_date'}"; print format_subject_html($co{'title'}, $co{'title_short'}, href(action=>"commit", hash=>$commit), $ref); -- 2.20.1