[Mageia-sysadm] [286] feedback test
root at mageia.org
root at mageia.org
Thu Jan 13 16:04:53 CET 2011
Revision: 286
Author: rda
Date: 2011-01-13 16:04:53 +0100 (Thu, 13 Jan 2011)
Log Message:
-----------
feedback test
Modified Paths:
--------------
build_system/web/index.php
Modified: build_system/web/index.php
===================================================================
--- build_system/web/index.php 2011-01-13 14:51:49 UTC (rev 285)
+++ build_system/web/index.php 2011-01-13 15:04:53 UTC (rev 286)
@@ -197,8 +197,10 @@
<td>%s</td>
<td>%s/%s</td>
<td class="status-box"></td>
+ <td>%s</td>
T;
+// count all packages statuses
$stats = array(
'uploaded' => 0,
'failure' => 0,
@@ -208,6 +210,17 @@
'built' => 0,
);
$total = count($pkgs);
+
+// feedback labels
+$badges = array(
+ 'uploaded' => 'Congrats %s! \o/',
+ 'failure' => 'Booooo! /o\\',
+ 'todo' => '',
+ 'building' => '',
+ 'partial' => '',
+ 'built' => ''
+);
+
foreach ($pkgs as $key => $p) {
$p['type'] = pkg_gettype($p);
@@ -218,7 +231,8 @@
$p['user'], $p['user'],
$p['package'],
$p['version'],
- $p['media'], $p['section']
+ $p['media'], $p['section'],
+ sprintf($badges[$p['type']], $p['user'])
);
$typelink = '';
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20110113/665eedb1/attachment.html>
More information about the Mageia-sysadm
mailing list