- print "<div class=\"head2\">\n";
- print "view " . $cgi->a({-href => "$myself/$project/commitdiff/$hash"}, "diff") . "</div><br/><br/>\n";
- print "<div class=\"title\">$title<br/></div>\n";
+ print "<div class=\"head2\"> view\n";
+ print $cgi->a({-href => "$my_uri/$project/commit/$hash"}, "commit") . " | ";
+ print $cgi->a({-href => "$my_uri/$project/commitdiff/$hash"}, "diff");
+ print "</div><br/><br/>\n";
+ print "<div class=\"title\">" . $cgi->a({-href => "$my_uri/$project/commitdiff/$hash"}, $co{'title'}) . "<br/></div>\n";
+ print "<table cellspacing=\"0\" class=\"log\">\n";
+ print "<tr>\n";
+ print "<td class=\"head2\">";
+ print "author " . escapeHTML($co{'author'}) . " [" . gmtime($co{'author_time'}) . " " . $co{'author_timezone'} . "]<br/>\n";
+ print "committer " . escapeHTML($co{'committer'}) . " [" . gmtime($co{'committer_time'}) . " " . $co{'committer_timezone'} . "]<br/>\n";
+ print "commit $hash<br/>\n";
+ print "tree " . $cgi->a({-href => "$my_uri/$project/tree/$co{'tree'}"}, $co{'tree'}) . "<br/>\n";
+ my $parents = $co{'parents'};
+ foreach my $par (@$parents) {
+ print "parent " . $cgi->a({-href => "$my_uri/$project/tree/$par"}, $par) . "<br/>\n";
+ }
+ print "</td>";
+ print "</tr>\n";
+ print "<tr>\n";
+ print "<td>\n";
+ my $comment = $co{'comment'};
+ foreach my $line (@$comment) {
+ if ($line =~ m/signed-off-by:/i) {
+ print '<div class="signed_off">' . escapeHTML($line) . "<br/></div>\n";
+ } else {
+ print escapeHTML($line) . "<br/>\n";
+ }
+ }
+ print "<br/><br/>\n";
+ print "</td>";
+ print "</tr>\n";
+ print "</table>";
+