diff options
author | Romain d'Alverny <rda@mageia.org> | 2012-09-05 08:38:37 +0000 |
---|---|---|
committer | Romain d'Alverny <rda@mageia.org> | 2012-09-05 08:38:37 +0000 |
commit | b6c6c47fd28fb82cc3fdc12fc11e7fc8bf0ed651 (patch) | |
tree | e261b2b18a3304cf143c025361571e5409914068 /test_index.php | |
parent | 1f4a9599370bd3eff8054a67313f95e65ea4c2ea (diff) | |
download | pkgsubmit-b6c6c47fd28fb82cc3fdc12fc11e7fc8bf0ed651.tar pkgsubmit-b6c6c47fd28fb82cc3fdc12fc11e7fc8bf0ed651.tar.gz pkgsubmit-b6c6c47fd28fb82cc3fdc12fc11e7fc8bf0ed651.tar.bz2 pkgsubmit-b6c6c47fd28fb82cc3fdc12fc11e7fc8bf0ed651.tar.xz pkgsubmit-b6c6c47fd28fb82cc3fdc12fc11e7fc8bf0ed651.zip |
fix stats display
Diffstat (limited to 'test_index.php')
-rw-r--r-- | test_index.php | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/test_index.php b/test_index.php index 80bbeef..bf07e25 100644 --- a/test_index.php +++ b/test_index.php @@ -249,7 +249,7 @@ if ($total > 0) { } echo sprintf('<li><p><span class="figure">%d</span> packages submitted in the past %d hours:</p>', $total, $max_modified * 24); - // Table + // Last submitted packages echo '<table>', '<thead><tr><th>Submitted</th><th>User</th> <th>Package</th><th>Target</th><th>Media</th> @@ -258,21 +258,25 @@ if ($total > 0) { '</table>'; // Stats - $s = '<div id="stats"> + $s = '<div id="stats"> <div id="status-chart"></div> <div id="packagers-chart"></div>'; - $s .= sprintf('<table style="width: 80%;"><tr><td>Total time</td><td>%s hours</td></tr> - <tr><td>Average</td><td>%s minutes</td></tr> - <tr><td>Builds count</td><td>%s</td></tr></table>', + $s .= sprintf( + '<table style="width: 70%%; margin: 2em 0 2em 80px;"> + <tr><td>Total time</td><td>%s hours</td></tr> + <tr><td>Average</td><td>%s minutes</td></tr> + <tr><td>Builds count</td><td>%s</td></tr> + </table>', round($buildtime_total / 60, 2), $buildtime_avg, - $buildtime_cnt); - $s .= '</table><br /><br />'; + $buildtime_cnt + ); - $s .= '<div id="buildtime-chart"></div> - <div id="buildschedule-chart"></div>'; - $s .= '</div>'; + $s .= '<br /><br /> + <div id="buildtime-chart"></div> + <div id="buildschedule-chart"></div> + </div>'; echo $s, '</li></ul>'; |