From a459ba283aa0edaa2edf3fd0e99491ab52e2c554 Mon Sep 17 00:00:00 2001 From: Ben Roberts Date: Mon, 25 Apr 2011 00:48:02 +0100 Subject: [PATCH] Updated status information on home page --- webui/source/pages/home.php | 8 +++++--- webui/source/templates/home.tpl | 16 +++++++++++++--- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/webui/source/pages/home.php b/webui/source/pages/home.php index 1977aa7..2d5edd7 100644 --- a/webui/source/pages/home.php +++ b/webui/source/pages/home.php @@ -1,10 +1,12 @@ smarty->assign('running_jobs', $running_jobs); + $this->smarty->assign('queued_jobs', $queued_jobs); $this->smarty->assign('completed_jobs', $completed_jobs); $this->smarty->assign('failed_jobs', $failed_jobs); diff --git a/webui/source/templates/home.tpl b/webui/source/templates/home.tpl index f9c1417..c7289c5 100644 --- a/webui/source/templates/home.tpl +++ b/webui/source/templates/home.tpl @@ -4,7 +4,17 @@ {if $running_jobs} {foreach from=$running_jobs item=job} -
  • Job {$job->id()}
  • +
  • {$job->name()} ({$job->currentStatus()->ripProgress()}%)
  • + {/foreach} +{else} + There are no currently running jobs. +{/if} + +

    Queued Jobs

    + +{if $queued_jobs} + {foreach from=$queued_jobs item=job} +
  • {$job->name()}
  • {/foreach} {else} There are no currently running jobs. @@ -15,7 +25,7 @@ {if $completed_jobs} {else} @@ -27,7 +37,7 @@ {if $failed_jobs} {else}