maint
Kay Sievers 2005-08-07 20:17:50 +02:00
parent 9cd3d98873
commit 820e4f6b6b
1 changed files with 11 additions and 6 deletions

View File

@ -14,7 +14,7 @@ use CGI::Carp qw(fatalsToBrowser);


my $cgi = new CGI; my $cgi = new CGI;


my $version = "070"; my $version = "071";
my $projectroot = "/pub/scm"; my $projectroot = "/pub/scm";
my $home_link = "/git"; my $home_link = "/git";
my $gitbin = "/usr/bin"; my $gitbin = "/usr/bin";
@ -657,7 +657,8 @@ if ($action eq "blob") {
print "<br/><br/></div>\n"; print "<br/><br/></div>\n";
print "<div class=\"title\">". escapeHTML($file_name) . "</div>\n"; print "<div class=\"title\">". escapeHTML($file_name) . "</div>\n";
print "<div class=\"page_body\">\n" . print "<div class=\"page_body\">\n" .
"<pre>\n"; "<br/>\n" .
"</div>\n";
foreach my $rev (@revlist) { foreach my $rev (@revlist) {
my %co = git_commit($rev); my %co = git_commit($rev);
my $parents = $co{'parents'}; my $parents = $co{'parents'};
@ -677,12 +678,16 @@ if ($action eq "blob") {
} }
} }
if ($found) { if ($found) {
print $co{'age_string'} . "\t " . $co{'author_name'} . " - " . $co{'title'} . " " . print "<div class=\"list\">\n" .
$cgi->a({-href => "$my_uri?p=$project;a=commit;h=$rev", -class => "link"}, "view") ."\n"; $co{'age_string'} . "" . $co{'title'} . "\n" .
"</div>";
print "<div class=\"link\">\n" .
"view " .
$cgi->a({-href => "$my_uri?p=$project;a=commit;h=$rev"}, "commit") . " | " .
$cgi->a({-href => "$my_uri?p=$project;a=tree;h=$rev"}, "tree") . "<br/><br/>\n" .
"</div>\n";
} }
} }
print "<br/></pre>\n";
print "</div>";
git_footer_html(); git_footer_html();
} else { } else {
die_error("", "unknown action"); die_error("", "unknown action");