summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2011-05-05 15:15:59 +0000
committerPascal Terjan <pterjan@mageia.org>2011-05-05 15:15:59 +0000
commit752d8eccf0616fd8d38454674bbedc500a6ebce6 (patch)
tree4ccbfa193e7533fb2a63085e5e55e879746ac34f /index.php
parent10ef904d5bd802c6376612579dce08e3e22fe032 (diff)
downloadpkgsubmit-752d8eccf0616fd8d38454674bbedc500a6ebce6.tar
pkgsubmit-752d8eccf0616fd8d38454674bbedc500a6ebce6.tar.gz
pkgsubmit-752d8eccf0616fd8d38454674bbedc500a6ebce6.tar.bz2
pkgsubmit-752d8eccf0616fd8d38454674bbedc500a6ebce6.tar.xz
pkgsubmit-752d8eccf0616fd8d38454674bbedc500a6ebce6.zip
Display build nodes as tooltip
Diffstat (limited to 'index.php')
-rw-r--r--index.php18
1 files changed, 14 insertions, 4 deletions
diff --git a/index.php b/index.php
index b563ee5..8ddf7c7 100644
--- a/index.php
+++ b/index.php
@@ -169,8 +169,11 @@ foreach ($matches as $val) {
} else if ($ext == '.youri') {
$pkgs[$key]['status']['youri'] = 1;
} else if ($ext == '.lock') {
- // parse build bot from $data
- $pkgs[$key]['status']['build'] = 1;
+ preg_match("!.*\.iurt\.(.*)\.\d+\.\d+!", $data, $buildhost);
+ if ($pkgs[$key]['status']['build'])
+ array_push($pkgs[$key]['status']['build'], $buildhost[1]);
+ else
+ $pkgs[$key]['status']['build'] = array($buildhost[1]);
} else if ($ext == '.done') {
// beware! this block is called twice for a given $key
@@ -328,11 +331,18 @@ if ($total > 0) {
} elseif ($p['type'] == 'rejected') {
$typelink = '/uploads/' . $p['type'] . '/' . $p['path'] . '.youri';
}
+ $typestr = $p['type'];
+ if ($p['status']['build']) {
+ $typealt = 'Building on';
+ foreach ($p['status']['build'] as $h)
+ $typealt .= " $h";
+ $typestr = "<span title='$typealt'>$typestr</a>";
+ }
$s .= '<td>';
$s .= ($typelink != '') ?
- sprintf('<a href="%s">%s</a>', $typelink, $p['type']) :
- $p['type'];
+ sprintf('<a href="%s">%s</a>', $typelink, $typestr) :
+ $typestr;
$s .= '</td><td>';
if ($p['type'] == 'uploaded') {