From 440c60068b85db4c637f9cdb088ca267cd367fa2 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Sun, 7 Aug 2005 20:24:01 +0200 Subject: [PATCH] v149 --- gitweb.cgi | 49 ++++++++++++++++++++++++++++++------------------- 1 file changed, 30 insertions(+), 19 deletions(-) diff --git a/gitweb.cgi b/gitweb.cgi index e738ea2ba..fccb96ea4 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 = "148"; +my $version = "149"; my $my_url = $cgi->url(); my $my_uri = $cgi->url(-absolute => 1); my $rss_link = ""; @@ -193,7 +193,7 @@ div.title, a.title { a.title:hover { background-color: #d9d8d1; } div.title_text { padding:6px 8px; border: solid #d9d8d1; border-width:0px 0px 1px; } div.log_body { padding:8px 8px 8px 150px; } -span.log_age { position:relative; float:left; width:142px; font-style:italic; } +span.age { position:relative; float:left; width:142px; font-style:italic; } div.log_link { font-size:10px; font-family:sans-serif; font-style:normal; position:relative; float:left; width:142px; @@ -729,19 +729,25 @@ sub git_summary { $cgi->a({-href => "$my_uri?p=$project;a=log", -class => "title"}, "recent commits") . "\n"; my $i = 10; + print "
\n" . + "\n"; foreach my $commit (@revlist) { my %co = git_read_commit($commit); my %ad = date_str($co{'author_epoch'}); - print "
\n" . - $cgi->a({-href => "$my_uri?p=$project;a=commit;h=$commit"}, - "$co{'age_string'}" . escapeHTML($co{'title'})) . "\n" . - "
\n"; - if (--$i == 0) { - print "
" . $cgi->a({-href => "$my_uri?p=$project;a=log"}, "...") . "
\n"; + print "\n"; + if (--$i > 0) { + print "\n" . + "\n" . + "\n" . + ""; + } else { + print "\n" . + ""; last; } } - print "

\n"; + print "" . + "\n"; my $taglist = git_read_tags(); if (defined @$taglist) { @@ -749,18 +755,23 @@ sub git_summary { $cgi->a({-href => "$my_uri?p=$project;a=tags", -class => "title"}, "recent tags") . "\n"; my $i = 10; + print "
\n" . + "
$co{'age_string'}$co{'author_name'}" . $cgi->a({-href => "$my_uri?p=$project;a=commit;h=$commit"}, escapeHTML($co{'title'})) . "
" . $cgi->a({-href => "$my_uri?p=$project;a=log"}, "...") . "
\n"; foreach my $entry (@$taglist) { my %tag = %$entry; - print "
\n" . - $cgi->a({-href => "$my_uri?p=$project;a=$tag{'type'};h=$tag{'id'}"}, - "$tag{'age'}" . escapeHTML($tag{'name'})) . "\n" . - "
\n"; - if (--$i == 0) { - print "
" . $cgi->a({-href => "$my_uri?p=$project;a=tags"}, "...") . "
\n"; + print "\n"; + if (--$i > 0) { + print "\n" . + "\n" . + ""; + } else { + print "\n" . + ""; last; } } - print "

\n"; + print "" . + "\n"; } git_footer_html(); } @@ -783,7 +794,7 @@ sub git_tags { my %tag = %$entry; print "
\n" . $cgi->a({-href => "$my_uri?p=$project;a=$tag{'type'};h=$tag{'id'}"}, - "$tag{'age'}" . escapeHTML($tag{'name'})) . "\n" . + "$tag{'age'}" . escapeHTML($tag{'name'})) . "\n" . "
\n"; } } @@ -1002,7 +1013,7 @@ sub git_log { my %ad = date_str($co{'author_epoch'}); print "
\n" . $cgi->a({-href => "$my_uri?p=$project;a=commit;h=$commit", -class => "title"}, - "$co{'age_string'}" . escapeHTML($co{'title'})) . "\n" . + "$co{'age_string'}" . escapeHTML($co{'title'})) . "\n" . "
\n"; print "
\n" . "
\n" . @@ -1343,7 +1354,7 @@ sub git_history { } print "
\n" . $cgi->a({-href => "$my_uri?p=$project;a=commit;h=$commit"}, - "$co{'age_string'}" . escapeHTML($co{'title'})) . "\n" . + "$co{'age_string'}" . escapeHTML($co{'title'})) . "\n" . "
\n"; print "
\n" . $cgi->a({-href => "$my_uri?p=$project;a=commit;h=$commit"}, "commit") . -- 2.30.2
$tag{'age'}" . $cgi->a({-href => "$my_uri?p=$project;a=$tag{'type'};h=$tag{'id'}"}, escapeHTML($tag{'name'})) . "
" . $cgi->a({-href => "$my_uri?p=$project;a=tags"}, "...") . "