From eb28240b64396e8dd35c79dd0158bcd80021fcc4 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Sun, 7 Aug 2005 20:21:34 +0200 Subject: [PATCH] v121 --- gitweb.cgi | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/gitweb.cgi b/gitweb.cgi index 546b23972..2be26bdbb 100755 --- a/gitweb.cgi +++ b/gitweb.cgi @@ -14,7 +14,7 @@ use CGI::Carp qw(fatalsToBrowser); use Fcntl ':mode'; my $cgi = new CGI; -my $version = "118"; +my $version = "121"; my $my_url = $cgi->url(); my $my_uri = $cgi->url(-absolute => 1); my $rss_link = ""; @@ -460,7 +460,7 @@ sub date_str { } # git-logo (cached in browser for one day) -sub git_logo() { +sub git_logo { print $cgi->header(-type => 'image/png', -expires => '+1d'); # cat git-logo.png | hexdump -e '16/1 " %02x" "\n"' | sed 's/ /\\x/g' print "\x89\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52" . @@ -510,15 +510,14 @@ sub git_project_list { @list = sort @list; git_header_html(); - print "
\n"; + print "

\n"; print "\n"; print "\n" . "\n" . "\n" . "\n" . "\n" . - "\n" . - "
"; + "\n"; foreach my $proj (@list) { my $head = git_read_head($proj); if (!defined $head) { @@ -614,7 +613,7 @@ sub git_blob { if (defined $file_name) { print "
/$file_name
\n"; } - print "
\n" .
+	print "
\n";
 	my $nr;
 	while (my $line = <$fd>) {
 		$nr++;
@@ -710,7 +709,7 @@ sub git_rss {
 		my %co = git_read_commit($commit);
 		my %ad = date_str($co{'author_epoch'});
 		print "\n" .
-		      "\t" . sprintf("%d %s %02d:%02d", $ad{'mday'}, $ad{'month'}, $ad{'hour'}, $ad{'min'}) . " - " . escapeHTML($co{'title'}) . "\n" .
+		      "\t" . sprintf("%d %s %02d:%02d", $ad{'mday'}, $ad{'month'}, $ad{'hour'}, $ad{'minute'}) . " - " . escapeHTML($co{'title'}) . "\n" .
 		      "\t " . $my_url . "?p=$project;a=commit;h=$commit\n" .
 		      "\t";
 		my $comment = $co{'comment'};
@@ -763,8 +762,9 @@ sub git_log {
 		      "
\n"; print "
\n" . "
\n" . - "view " . $cgi->a({-href => "$my_uri?p=$project;a=commit;h=$commit"}, "commit") . " | " . - $cgi->a({-href => "$my_uri?p=$project;a=commitdiff;h=$commit"}, "diff") . "
\n" . + "view " . $cgi->a({-href => "$my_uri?p=$project;a=commit;h=$commit"}, "commit") . + " | " . $cgi->a({-href => "$my_uri?p=$project;a=commitdiff;h=$commit"}, "diff") . + "
\n" . "
\n" . "" . escapeHTML($co{'author_name'}) . " [" . $ad{'rfc2822'} . "]
\n" . "
\n" . @@ -1105,8 +1105,10 @@ sub git_history { "
\n"; print "
\n" . "view " . - $cgi->a({-href => "$my_uri?p=$project;a=commit;h=$commit"}, "commit") . " | " . - $cgi->a({-href => "$my_uri?p=$project;a=tree;h=" . $co{'tree'} . ";hb=$commit"}, "tree") . "

\n" . + $cgi->a({-href => "$my_uri?p=$project;a=commit;h=$commit"}, "commit") . + " | " . $cgi->a({-href => "$my_uri?p=$project;a=tree;h=" . $co{'tree'} . ";hb=$commit"}, "tree") . + " | " . $cgi->a({-href => "$my_uri?p=$project;a=blob;hb=$commit;f=" . $file}, "file") . + "

\n" . "
\n"; undef $commit; } -- 2.26.2
ProjectDescriptionOwnerlast change