Updated status information on home page
This commit is contained in:
@@ -1,10 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
$running_jobs = RippingCluster_Job::allWithStatus(RippingCluster_JobStatus::RUNNING, 5);
|
$running_jobs = RippingCluster_Job::allWithStatus(RippingCluster_JobStatus::RUNNING, 10);
|
||||||
$completed_jobs = RippingCluster_Job::allWithStatus(RippingCluster_JobStatus::COMPLETE, 5);
|
$queued_jobs = RippingCluster_Job::allWithStatus(RippingCluster_JobStatus::QUEUED, 10);
|
||||||
$failed_jobs = RippingCluster_Job::allWithStatus(RippingCluster_JobStatus::FAILED, 5);
|
$completed_jobs = RippingCluster_Job::allWithStatus(RippingCluster_JobStatus::COMPLETE, 10);
|
||||||
|
$failed_jobs = RippingCluster_Job::allWithStatus(RippingCluster_JobStatus::FAILED, 10);
|
||||||
|
|
||||||
$this->smarty->assign('running_jobs', $running_jobs);
|
$this->smarty->assign('running_jobs', $running_jobs);
|
||||||
|
$this->smarty->assign('queued_jobs', $queued_jobs);
|
||||||
$this->smarty->assign('completed_jobs', $completed_jobs);
|
$this->smarty->assign('completed_jobs', $completed_jobs);
|
||||||
$this->smarty->assign('failed_jobs', $failed_jobs);
|
$this->smarty->assign('failed_jobs', $failed_jobs);
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,17 @@
|
|||||||
|
|
||||||
{if $running_jobs}
|
{if $running_jobs}
|
||||||
{foreach from=$running_jobs item=job}
|
{foreach from=$running_jobs item=job}
|
||||||
<li><a href="{$base_uri}job-details/id/{$job->id()}" title="View job details">Job {$job->id()}</a></li>
|
<li><a href="{$base_uri}job-details/id/{$job->id()}" title="View job details">{$job->name()} ({$job->currentStatus()->ripProgress()}%)</a></li>
|
||||||
|
{/foreach}
|
||||||
|
{else}
|
||||||
|
<em>There are no currently running jobs.</em>
|
||||||
|
{/if}
|
||||||
|
|
||||||
|
<h3>Queued Jobs</h3>
|
||||||
|
|
||||||
|
{if $queued_jobs}
|
||||||
|
{foreach from=$queued_jobs item=job}
|
||||||
|
<li><a href="{$base_uri}job-details/id/{$job->id()}" title="View job details">{$job->name()}</a></li>
|
||||||
{/foreach}
|
{/foreach}
|
||||||
{else}
|
{else}
|
||||||
<em>There are no currently running jobs.</em>
|
<em>There are no currently running jobs.</em>
|
||||||
@@ -15,7 +25,7 @@
|
|||||||
{if $completed_jobs}
|
{if $completed_jobs}
|
||||||
<ul>
|
<ul>
|
||||||
{foreach from=$completed_jobs item=job}
|
{foreach from=$completed_jobs item=job}
|
||||||
<li><a href="{$base_uri}job-details/id/{$job->id()}" title="View job details">Job {$job->id()}</a></li>
|
<li><a href="{$base_uri}job-details/id/{$job->id()}" title="View job details">{$job->name()}</a></li>
|
||||||
{/foreach}
|
{/foreach}
|
||||||
</ul>
|
</ul>
|
||||||
{else}
|
{else}
|
||||||
@@ -27,7 +37,7 @@
|
|||||||
{if $failed_jobs}
|
{if $failed_jobs}
|
||||||
<ul>
|
<ul>
|
||||||
{foreach from=$failed_jobs item=job}
|
{foreach from=$failed_jobs item=job}
|
||||||
<li><a href="{$base_uri}job-details/id/{$job->id()}" title="View job details">Job {$job->id()}</a></li>
|
<li><a href="{$base_uri}job-details/id/{$job->id()}" title="View job details">{$job->name()}</a></li>
|
||||||
{/foreach}
|
{/foreach}
|
||||||
</ul>
|
</ul>
|
||||||
{else}
|
{else}
|
||||||
|
|||||||
Reference in New Issue
Block a user