diff --git a/gitweb.cgi b/gitweb.cgi index 09ea999831..078f25fa32 100755 --- a/gitweb.cgi +++ b/gitweb.cgi @@ -15,7 +15,7 @@ use CGI::Carp qw(fatalsToBrowser); use Fcntl ':mode'; my $cgi = new CGI; -my $version = "157"; +my $version = "160"; my $my_url = $cgi->url(); my $my_uri = $cgi->url(-absolute => 1); my $rss_link = ""; @@ -194,23 +194,21 @@ div.title, a.title { font-weight:bold; background-color:#edece6; text-decoration:none; color:#000000; } a.title:hover { background-color: #d9d8d1; } -div.title_text { padding:6px 8px; border: solid #d9d8d1; border-width:0px 0px 1px; } +div.title_text { padding:6px 0px; border: solid #d9d8d1; border-width:0px 0px 1px; } div.log_body { padding:8px 8px 8px 150px; } span.age { position:relative; float:left; width:142px; font-style:italic; } div.log_link { + padding:0px 8px; font-size:10px; font-family:sans-serif; font-style:normal; - position:relative; float:left; width:142px; -} -div.list_head { - display:block; padding:6px 6px 4px; border:solid #d9d8d1; - border-width:1px 0px 0px; font-style:italic; + position:relative; float:left; width:136px; } +div.list_head { padding:6px 8px 4px; border:solid #d9d8d1; border-width:1px 0px 0px; font-style:italic; } a.list { text-decoration:none; color:#000000; } a.list:hover { color:#880000; } -td { padding:5px 15px 0px 0px; font-size:12px; } -th { padding-right:10px; font-size:12px; text-align:left; } -td.link { font-family:sans-serif; font-size:10px; } -td.pre { font-family:monospace; font-size:12px; white-space:pre; padding:2px 15px 0px 0px; } +table { padding:8px 4px; } +th { padding:2px 5px; font-size:12px; text-align:left; } +td { padding:2px 5px; font-size:12px; } +td.link { padding:2px 5px; font-family:sans-serif; font-size:10px; } div.pre { font-family:monospace; font-size:12px; white-space:pre; } div.diff_info { font-family:monospace; color:#000099; background-color:#edece6; font-style:italic; } div.index_include { border:solid #d9d8d1; border-width:0px 0px 1px; padding:12px 8px; } @@ -592,8 +590,7 @@ sub git_project_list { close $fd; print "\n"; } - print "
Project | \n" . "Description | \n" . @@ -601,6 +598,7 @@ sub git_project_list { "last change | \n" . "\n" . " |
---|---|---|---|
" . $cgi->a({-href => "$my_uri?p=$proj{'path'};a=summary", -class => "list"}, escapeHTML($proj{'path'})) . " | \n" . + if ($alternate) { + print "|||
" . $cgi->a({-href => "$my_uri?p=$proj{'path'};a=summary", -class => "list"}, escapeHTML($proj{'path'})) . " | \n" . "$descr | \n" . "$proj{'owner'} | \n"; my $colored_age; @@ -638,8 +641,7 @@ sub git_project_list { "
description | " . escapeHTML($descr) . " |
owner | $owner |
last change | $cd{'rfc2822'} |
$co{'age_string'} | \n" . "$co{'author_name'} | \n" . @@ -749,20 +754,24 @@ sub git_summary { last; } } - print "
$tag{'age'} | \n" . "" . $cgi->a({-href => "$my_uri?p=$project;a=$tag{'type'};h=$tag{'id'}", -class => "list"}, "" . escapeHTML($tag{'name'}) . "") . " | \n" . @@ -774,8 +783,7 @@ sub git_summary { last; } } - print "
$tag{'age'} | \n" . "" . $cgi->a({-href => "$my_uri?p=$project;a=log;h=$tag{'id'}", -class => "list"}, "" . escapeHTML($tag{'name'}) . "") . " | \n" . @@ -800,8 +813,7 @@ sub git_summary { last; } } - print "
$tag{'age'} | \n" . + if ($alternate) { + print "||
$tag{'age'} | \n" . "" . $cgi->a({-href => "$my_uri?p=$project;a=log;h=$tag{'id'}", -class => "list"}, "" . escapeHTML($tag{'name'}) . "") . " | \n" . "" . $cgi->a({-href => "$my_uri?p=$project;a=$tag{'type'};h=$tag{'id'}"}, $tag{'type'}) . " | \n" . "
$tag{'age'} | \n" . + if ($alternate) { + print "||
$tag{'age'} | \n" . "" . $cgi->a({-href => "$my_uri?p=$project;a=log;h=$tag{'id'}", -class => "list"}, "" . escapeHTML($tag{'name'}) . "") . " | \n" . "" . $cgi->a({-href => "$my_uri?p=$project;a=log;h=$tag{'id'}"}, "log") . " | \n" . "
" . mode_str($t_mode) . " | \n"; + if ($alternate) { + print "|||
" . mode_str($t_mode) . " | \n"; if ($t_type eq "blob") { print "" . $cgi->a({-href => "$my_uri?p=$project;a=blob;h=$t_hash" . $base_key . $file_key, -class => "list"}, $t_name) . @@ -1004,7 +1030,8 @@ sub git_tree { } elsif ($t_type eq "tree") { print " | " . $cgi->a({-href => "$my_uri?p=$project;a=tree;h=$t_hash" . $base_key . $file_key}, $t_name) . - " | \n"; + "\n" . + "\n"; } print " |
author | " . escapeHTML($co{'author'}) . " | |
$ad{'rfc2822'}"; + " | ||
$ad{'rfc2822'}"; if ($ad{'hour_local'} < 6) { printf(" (%02d:%02d %s)", $ad{'hour_local'}, $ad{'minute_local'}, $ad{'tz_local'}); } else { printf(" (%02d:%02d %s)", $ad{'hour_local'}, $ad{'minute_local'}, $ad{'tz_local'}); } - print " | ||
committer | " . escapeHTML($co{'committer'}) . " | |
$cd{'rfc2822'}" . sprintf(" (%02d:%02d %s)", $cd{'hour_local'}, $cd{'minute_local'}, $cd{'tz_local'}) . " | ||
commit | $hash | |
tree | " . - $cgi->a({-href => "$my_uri?p=$project;a=tree;h=$co{'tree'};hb=$hash"}, $co{'tree'}) . " | |
tree | " . + "" . $cgi->a({-href => "$my_uri?p=$project;a=tree;h=$co{'tree'};hb=$hash", class => "list"}, $co{'tree'}) . " | " . + "" . $cgi->a({-href => "$my_uri?p=$project;a=tree;h=$co{'tree'};hb=$hash"}, "tree") . + " | " . + "
parent | " . - $cgi->a({-href => "$my_uri?p=$project;a=commit;h=$par"}, $par) . " | |
parent | " . + "" . $cgi->a({-href => "$my_uri?p=$project;a=commit;h=$par", class => "list"}, $par) . " | " . + "" . + $cgi->a({-href => "$my_uri?p=$project;a=commit;h=$par"}, "commit") . + " |" . $cgi->a({-href => "$my_uri?p=$project;a=commitdiff;h=$hash;hp=$par"}, "commitdiff") . + " | " . + "
$co{'age_string'} | \n" . + if ($alternate) { + print "|||
$co{'age_string'} | \n" . "$co{'author_name'} | \n" . "" . $cgi->a({-href => "$my_uri?p=$project;a=commit;h=$commit", -class => "list"}, "" . escapeHTML($co{'title'}) . "") . " | \n" . "" . @@ -1466,8 +1518,7 @@ sub git_history { undef $commit; } } - print " |