summaryrefslogtreecommitdiffstats
path: root/test_index.php
diff options
context:
space:
mode:
authorRomain d'Alverny <rda@mageia.org>2012-09-10 14:59:17 +0000
committerRomain d'Alverny <rda@mageia.org>2012-09-10 14:59:17 +0000
commit72ee5d17e6bdff1878cda461f949524546ba7c4a (patch)
tree8ddb019736a45f56b6460e6b1c286e609cd3d888 /test_index.php
parent4515ec1070d6e7842658c61a70997f08f78b18b4 (diff)
downloadpkgsubmit-72ee5d17e6bdff1878cda461f949524546ba7c4a.tar
pkgsubmit-72ee5d17e6bdff1878cda461f949524546ba7c4a.tar.gz
pkgsubmit-72ee5d17e6bdff1878cda461f949524546ba7c4a.tar.bz2
pkgsubmit-72ee5d17e6bdff1878cda461f949524546ba7c4a.tar.xz
pkgsubmit-72ee5d17e6bdff1878cda461f949524546ba7c4a.zip
whole status box is actionable
Diffstat (limited to 'test_index.php')
-rw-r--r--test_index.php14
1 files changed, 9 insertions, 5 deletions
diff --git a/test_index.php b/test_index.php
index a4a36fb..14338d5 100644
--- a/test_index.php
+++ b/test_index.php
@@ -244,17 +244,21 @@ if ($total > 0) {
}
$s .= '<td>';
- $s .= ($typelink != '') ?
- sprintf('<a rel="nofollow" href="%s" class="status-link">%s</a>', $typelink, $typestr) :
- $typestr;
+ $show_time = '';
if ($p['type'] == 'uploaded') {
$tdiff = timediff($p['buildtime']['start'], $p['buildtime']['end']); // use $p['buildtime']['diff']; instead?
- $s .= '<span class="timeinfo">' . $tdiff . '</span>';
+ $show_time = '<span class="timeinfo">' . $tdiff . '</span>';
$tdiff = floor(($p['buildtime']['end'] - $p['buildtime']['start']) / 60)*60;
@$buildtime_stats[timediff(0, $tdiff)] += 1;
}
+ $s .= ($typelink != '')
+ ? sprintf('<a rel="nofollow" href="%s" class="status-link"><span class="status-box"></span> %s %s</a>',
+ $typelink, $typestr, $show_time)
+ : sprintf('<span class="status-box"></span> %s %s',
+ $typestr, $show_time);
+
$s .= '</td></tr>';
}
echo sprintf('<li><p><span class="figure">%d</span> packages submitted in the past %d&nbsp;hours:</p>', $total, $max_modified * 24);
@@ -265,7 +269,7 @@ if ($total > 0) {
<th>Package</th>
<th>Who <span class="timeinfo">when</span></th>
<th>Target <span class="media">media</span></th>
- <th colspan="2">Status</th>
+ <th>Status <span class="timeinfo">build time</span></th>
</tr></thead>',
'<tbody>', $s, '</tbody>',
'</table>';