From 72ee5d17e6bdff1878cda461f949524546ba7c4a Mon Sep 17 00:00:00 2001 From: Romain d'Alverny Date: Mon, 10 Sep 2012 14:59:17 +0000 Subject: whole status box is actionable --- test_index.php | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'test_index.php') 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 .= ''; - $s .= ($typelink != '') ? - sprintf('%s', $typelink, $typestr) : - $typestr; + $show_time = ''; if ($p['type'] == 'uploaded') { $tdiff = timediff($p['buildtime']['start'], $p['buildtime']['end']); // use $p['buildtime']['diff']; instead? - $s .= '' . $tdiff . ''; + $show_time = '' . $tdiff . ''; $tdiff = floor(($p['buildtime']['end'] - $p['buildtime']['start']) / 60)*60; @$buildtime_stats[timediff(0, $tdiff)] += 1; } + $s .= ($typelink != '') + ? sprintf(' %s %s', + $typelink, $typestr, $show_time) + : sprintf(' %s %s', + $typestr, $show_time); + $s .= ''; } echo sprintf('
  • %d packages submitted in the past %d hours:

    ', $total, $max_modified * 24); @@ -265,7 +269,7 @@ if ($total > 0) { Package Who when Target media - Status + Status build time ', '', $s, '', ''; -- cgit v1.2.1