]> git.pld-linux.org Git - projects/pld-ftp-admin.git/commitdiff
number items
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 8 Jun 2015 15:06:46 +0000 (18:06 +0300)
committerElan Ruusamäe <glen@pld-linux.org>
Mon, 8 Jun 2015 15:06:46 +0000 (18:06 +0300)
html/qa.php

index ca8f9696c710d37a7765c92ae0757e87a9eb2abf..bd8d66163de9bc3bfe91c8736fcfbac4b247718a 100644 (file)
@@ -50,14 +50,16 @@ if (isset($reports[$report])) {
        echo "<a href=$report.txt>raw</a><br/>\n";
        $file = "$report.txt";
        $giturl = 'http://git.pld-linux.org/gitweb.cgi?p=packages/%1$s.git;f=%1$s.spec;h=HEAD;a=shortlog';
+       echo '<ol>';
        foreach (file($file) as $line) {
                $line = preg_replace_callback('/^(?P<prefix>error:|GIT:)\s*\[(?P<spec>[^]]+)\]\s*(?P<msg>.+)$/', function($m) use ($giturl) {
                        $package = basename($m['spec'], '.spec');
                        $url = sprintf($giturl, $package);
-                       return sprintf('<font color=red>%s</font> [<a href="%s">%s</a>] %s', $m['prefix'], $url, $m['spec'], $m['msg']);
+                       return sprintf('<li><font color=red>%s</font> [<a href="%s">%s</a>] %s', $m['prefix'], $url, $m['spec'], $m['msg']);
                }, $line);
                echo $line, "<br/>\n";
        }
+       echo '</ol>';
 }
 
 ?>
This page took 0.0681580000000001 seconds and 4 git commands to generate.