--- web/cgi-bin/cvslog.cgi 2003/09/27 17:42:45 1.29 +++ web/cgi-bin/cvslog.cgi 2004/03/21 23:59:32 1.30 @@ -1,5 +1,7 @@ #!/usr/bin/perl -w +# TODO: remove tables, and use CSS instead + use CGI; $query=new CGI; my($period)=$query->param('period'); @@ -48,38 +50,41 @@ my($cvs2clargs) = "--stdout --no-wrap --no-common-dir my($updatecmd) = "/home/iscream/bin/fullcvsupdate.sh $modulelist"; my($logcmd) = "cd /tmp/i-scream/cvstmp && $cvs2clpath $cvs2clargs"; -my ($left) = "../htdocs/left.inc" ; -my ($title) = "../htdocs/title.inc"; -my ($bottom) = "../htdocs/bottom.inc"; +my ($menu) = "../nwww/menu.inc" ; +my ($header) = "../nwww/header.inc"; +my ($footer) = "../nwww/footer.inc"; +my ($style) = "../nwww/style.inc"; print "Content-type: text/html\n\n"; print <<"END"; - + - The i-scream Project Commit Log - - - - - - - - - -
+ i-scream CVS Commit Logs END -&print_html($left); +&print_html($style); print <<"END"; - + + + + +
+ +
END -&print_html($title); +&print_html($header); print <<"END"; +
+

i-scream CVS Commit Logs

+

$heading

END @@ -90,7 +95,7 @@ my(@modules) = split (/\s+/, $modulelist); foreach my $module (@modules) { print "\n\n"; - print "\n\n"; + print "\n\n"; print "
\n$module module\n
\n$module module\n
\n"; my(@lines) = `$logcmd $module 2>&1`; @@ -152,13 +157,13 @@ foreach my $module (@modules) { print HTML_encode($rev); } print HTML_encode($ext); - print "
\n" + print "
\n" } else { chomp $line; print ""; print HTML_encode($line); - print "
\n" + print "
\n" } } } @@ -167,16 +172,18 @@ foreach my $module (@modules) { print "

\n\n"; } -&print_html($bottom); +print "

"; -print <<"END"; +&print_html($footer); -
+print ""; - +&print_html($menu); +print <<"END"; + + + END