ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/web/cgi-bin/cvslog.cgi
(Generate patch)

Comparing web/cgi-bin/cvslog.cgi (file contents):
Revision 1.6 by tdb, Tue Jun 5 17:20:12 2001 UTC vs.
Revision 1.7 by tdb, Wed Jun 13 15:18:55 2001 UTC

# Line 26 | Line 26 | else {
26  
27   print "Content-type: text/html\n\n";
28  
29 my($cvs) = "/usr/bin/cvs";
29   my($cvs2clpath) = "/home/sites/www.i-scream.org.uk/bin/cvs2cl.pl";
30   my($cvsroot) = "/cvs/i-scream";
31   my($cvs2clargs) = "--stdout -r -b -t -w -U $cvsroot/CVSROOT/users -l \"-d'\>$firstdate'\" -g \"-d$cvsroot\" -g \"-Q\"";
# Line 39 | Line 38 | print <<"END";
38   <html>
39  
40   <head>
41 < <title>The i-scream Project Daily Commit Log</title>
41 > <title>The i-scream Project Commit Log</title>
42   </head>
43  
44 < <body bgcolor="#ffffff" link="#0000ff" alink="#3333cc" vlink="#3333cc" text="#000066">
44 > <body bgcolor="#ffffff" link="#ffffff" alink="#ffffff" vlink="#ffffff" text="#000066">
45  
46   <a href="http://www.i-scream.org.uk"><img border="0" src="../i-scream.gif"></a>
47  
48 < <h2>$heading</h2>
48 > <center><table border="0" cellpadding="4" cellspacing="1" bgcolor="#000066" align="center"><tr><td bgcolor="#ffffcc"><font color="#000066" face="arial,sans-serif" size="5"><b><center>$heading</center></b></font></td></tr></table></center>
49 > <p>&nbsp;</p>
50  
51   END
52  
# Line 57 | Line 57 | my(@modules) = split (/\s+/, $modulelist);
57  
58   foreach my $module (@modules) {
59  
60 <    print "<p><h3>$module module</h3>\n";
61 <    print "<a href=\"/cgi-bin/cvs/viewcvs.cgi/$module\">";
62 <    print "Browse i-scream &quot;$module&quot; cvs module</a>\n";
63 <    print "<pre>\n";
60 >    print "<table border=\"0\" bgcolor=\"#000066\" cellpadding=\"5\" width=\"100%\">";
61 >    print "<tr><td><font size=\"4\"><b><a href=\"/cgi-bin/cvs/viewcvs.cgi/$module\">$module module</a></b></font></td></tr>";
62 >    print "<tr><td bgcolor=\"white\">";
63  
64      my(@lines) = `$logcmd $module 2>&1`;
65      if(@lines == 0) {
# Line 68 | Line 67 | foreach my $module (@modules) {
67      }
68      else {
69          foreach my $line (@lines) {
70 <            print HTML_encode($line);
70 >
71 >            if ($line =~ /^([0-9]{4}-[0-9]{2}-[0-9]{2}.*?)([^\s]+)$/) {
72 >                print "<font color=\"blue\"><b>";
73 >                print HTML_encode($1);
74 >                print "</b><i>";
75 >                print HTML_encode("by $2");
76 >                print "</i></font>"
77 >            }
78 >            else {
79 >                chop $line;
80 >                print "<code>";
81 >                print HTML_encode($line);
82 >                print "</code><br>"
83 >            }
84          }
85      }
86 +    print "</td></tr>";
87  
88 <    print "</pre></p>\n\n";
88 >    print "</table><p>\n\n";
89   }
90  
91   print <<"END";
92 +
93   </body>
94  
95   </html>

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines