]> git.pld-linux.org Git - projects/buildlogs.git/commitdiff
- add section links to processing files of each package too
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 21 Mar 2012 11:40:49 +0000 (11:40 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Wed, 21 Mar 2012 11:40:49 +0000 (11:40 +0000)
index.php

index 74bb00bc54be36b2a783467fd6eb8a0a9880f650..0012f2107e184553fa217e17a39c16507afd11bd 100644 (file)
--- a/index.php
+++ b/index.php
@@ -372,6 +372,10 @@ function dump_log($tail)
                        // rpm build section
                        $s = "<span class=section id={$m['section']}>$s</span>";
                        $toc[] = $m['section'];
+               } elseif (preg_match("/^Processing files: (?P<pkg>(?P<name>.+)-[^-]+-[^-]+)/", $s, $m)) {
+                       // processing files
+                       $s = "<span class=section id=files-{$m['name']}>$s</span>";
+                       $toc[] = "files ".$m['name'];
                }
                echo $s;
        }
@@ -383,7 +387,8 @@ function dump_log($tail)
                echo "<h2>"._("Toc:")."</h2>";
                echo "<ul class=toc>";
                foreach ($toc as $section) {
-                       echo "<li><a href=#{$section}>{$section}</a></li>";
+                       $id = str_replace(" ", "-", $section);
+                       echo "<li><a href=#{$id}>{$section}</a></li>";
                }
                echo "</ul>";
        }
@@ -472,7 +477,7 @@ function list_archs()
                "alt=\""._("Powered by PLD Linux")."\" border=\"0\" /></a><br />\n" .
             "<small>(c) 2002 ".
             "<a href=\"mailto:feedback@pld-linux.org\">PLD&nbsp;Team</a><br />\n".
-            '$Revision: 1.16 $'.
+            '$Revision: 1.17 $'.
             "</small></div>\n";
 
        # smile ;)
@@ -845,7 +850,7 @@ function welcome()
 <!-- ech... niech strace... -->
 <a href="mailto:feedback@pld-linux.org"><?=_("to us")?></a>. <?=_("Positive opinions are also")?>
 <a href="mailto:feedback@pld-linux.org"><?=_("welcome")?></a> ;)</p>
-<p>Version: $Id: index.php,v 1.16 2012/02/08 21:03:01 glen Exp $</p>
+<p>Version: $Id: index.php,v 1.17 2012/03/21 01:29:44 glen Exp $</p>
 </td><td width="20%">&nbsp;</td></tr>
 </table>
 <?php
This page took 0.177026 seconds and 4 git commands to generate.