From 98194dc350bc25159682bdd74ff1a5bf7f56d9c6 Mon Sep 17 00:00:00 2001 From: Romain d'Alverny Date: Tue, 4 Sep 2012 17:19:54 +0000 Subject: do not build charts if we have no package submitted --- test_index.php | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) (limited to 'test_index.php') 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) {
'; $s .= ''; - echo $s, ''; -} -else -{ - echo sprintf('
  • No package has been submitted in the past %d hours.

  • ', - $max_modified * 24); -} + echo $s, ''; -?> - -
    - ', 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(), ''; echo mga_bs_charts::js_init(); - ?> +} +else +{ + echo sprintf('
  • No package has been submitted in the past %d hours.

  • ', + $max_modified * 24); +} + +?> + +

    Generated at . Code for this page is in http://svnweb.mageia.org/soft/build_system/web/.

    -- cgit v1.2.1