- git_header();
- print "<div class=\"head2\">\n";
- print "view ";
- print $cgi->a({-href => "$myself/$project/log"}, "last day") . " | ";
- print $cgi->a({-href => "$myself/$project/log/7"}, "week") . " | ";
- print $cgi->a({-href => "$myself/$project/log/31"}, "month") . " | ";
- print $cgi->a({-href => "$myself/$project/log/365"}, "year") . " | ";
- print $cgi->a({-href => "$myself/$project/log/0"}, "all") . "<br/>\n";
- print "<br/><br/>\n";
- print "</div>\n";
- print "<table cellspacing=\"0\" class=\"log\">\n";
+
+ if ($action eq "log") {
+ git_header();
+ print "<div class=\"head2\">\n";
+ print "view ";
+ print $cgi->a({-href => "$myself/$project/log"}, "last day") . " | ";
+ print $cgi->a({-href => "$myself/$project/log/7"}, "week") . " | ";
+ print $cgi->a({-href => "$myself/$project/log/31"}, "month") . " | ";
+ print $cgi->a({-href => "$myself/$project/log/365"}, "year") . " | ";
+ print $cgi->a({-href => "$myself/$project/log/0"}, "all") . "<br/>\n";
+ print "<br/><br/>\n";
+ print "</div>\n";
+ print "<table cellspacing=\"0\" class=\"log\">\n";
+ } elsif ($action eq "rss") {
+ print $cgi->header(-type => 'text/xml; charset: utf-8');
+ print "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n".
+ "<rss version=\"0.91\">\n";
+ print "<channel>\n";
+ print "<title>$project</title>\n".
+ "<link> " . $cgi->url() . "/$project/log</link>\n".
+ "<description>$project log</description>\n".
+ "<language>en</language>\n";
+ }
+