diff options
author | Romain d'Alverny <rda@mageia.org> | 2012-09-04 17:19:54 +0000 |
---|---|---|
committer | Romain d'Alverny <rda@mageia.org> | 2012-09-04 17:19:54 +0000 |
commit | 98194dc350bc25159682bdd74ff1a5bf7f56d9c6 (patch) | |
tree | 14e01dba80f0c13dcf9e8b7229ccf8abaa326ee7 /test_index.php | |
parent | 95f684b484df660ef51561656cf914ff0bf52e8f (diff) | |
download | pkgsubmit-98194dc350bc25159682bdd74ff1a5bf7f56d9c6.tar pkgsubmit-98194dc350bc25159682bdd74ff1a5bf7f56d9c6.tar.gz pkgsubmit-98194dc350bc25159682bdd74ff1a5bf7f56d9c6.tar.bz2 pkgsubmit-98194dc350bc25159682bdd74ff1a5bf7f56d9c6.tar.xz pkgsubmit-98194dc350bc25159682bdd74ff1a5bf7f56d9c6.zip |
do not build charts if we have no package submitted
Diffstat (limited to 'test_index.php')
-rw-r--r-- | test_index.php | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/test_index.php b/test_index.php index 7bf0ccd..81fd6b9 100644 --- a/test_index.php +++ b/test_index.php @@ -274,20 +274,9 @@ if ($total > 0) { <div id="buildschedule-chart"></div>'; $s .= '</div>'; - echo $s, '</li>'; -} -else -{ - echo sprintf('<li><p>No package has been submitted in the past %d hours.</p></li>', - $max_modified * 24); -} + echo $s, '</li></ul>'; -?> - </ul> - <div class="clear"></div> - <?php uksort($buildtime_stats, "timesort"); - echo '<script>', mga_bs_charts::js_draw_status_chart($stats, 'status-chart'), mga_bs_charts::js_draw_buildtime_chart($buildtime_stats, 'buildtime-chart'), @@ -296,7 +285,16 @@ else mga_bs_charts::js_draw_charts(), '</script>'; echo mga_bs_charts::js_init(); - ?> +} +else +{ + echo sprintf('<li><p>No package has been submitted in the past %d hours.</p></li></ul>', + $max_modified * 24); +} + +?> + </ul> + <div class="clear"></div> <hr /> <p>Generated at <?php echo $date_gen; ?>. Code for this page is in <a href="http://svnweb.mageia.org/soft/build_system/web/">http://svnweb.mageia.org/soft/build_system/web/</a>.</p> |