diff options
author | Pascal Terjan <pterjan@mageia.org> | 2011-05-05 15:15:59 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@mageia.org> | 2011-05-05 15:15:59 +0000 |
commit | 752d8eccf0616fd8d38454674bbedc500a6ebce6 (patch) | |
tree | 4ccbfa193e7533fb2a63085e5e55e879746ac34f /index.php | |
parent | 10ef904d5bd802c6376612579dce08e3e22fe032 (diff) | |
download | pkgsubmit-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.php | 18 |
1 files changed, 14 insertions, 4 deletions
@@ -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') { |