Skip to content

Commit 84c5840

Browse files
committed
Show progress in evaluation details
1 parent 2c3da83 commit 84c5840

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

controllers/evaluation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public function detail() {
148148
$this->view->assign('evaluation', $evaluation);
149149
$this->view->assign('experiment', $experiment);
150150
$this->view->assign('system', Factory::getSystemFactory()->get($experiment->getSystemId()));
151-
$this->view->assign('subjobs', $jobs);
151+
$this->view->assign('jobs', $jobs);
152152
$sys = new System($evaluation->getSystemId());
153153
$this->view->assign('supportsShowResults', $sys->supportsFullResults());
154154
// check if all jobs have finished

views/evaluation/detail.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,15 +233,24 @@ function submitData() {
233233
<tr>
234234
<th style="width: 10px;">#</th>
235235
<th>Description</th>
236+
<th>Progress</th>
236237
<th>Status</th>
237238
<th style="width: 10px"></th>
238239
</tr>
239240
</thead>
240241
<tbody>
241-
<?php foreach($data['subjobs'] as $job) { /** @var $job Job */ ?>
242+
<?php foreach($data['jobs'] as $job) { /** @var $job Job */ ?>
242243
<tr class='clickable-row' data-href='/job/detail/id=<?php echo $job->getId(); ?>' style="cursor: pointer;">
243244
<td><?php echo $job->getInternalId(); ?></td>
244245
<td><?php echo $job->getDescription(); ?></td>
246+
<td style="padding: 2px 10px 2px 10px;">
247+
<?php if($job->getStatus() == Define::JOB_STATUS_RUNNING && $job->getProgress() > 0) { ?>
248+
<span style="color:green;margin:0"><?php echo (!empty($job->getCurrentPhase()))?ucfirst(strtolower(Define::JOB_PHASE_NAMES[$job->getCurrentPhase()])):" "; ?></span>
249+
<div style="margin-top:1px;" class="progress progress-xs progress-xs progress-striped active">
250+
<div class="progress-bar progress-bar-success" style="width: <?php echo $job->getProgress(); ?>%"></div>
251+
</div>
252+
<?php } ?>
253+
</td>
245254
<td>
246255
<?php if($job->getStatus() == Define::JOB_STATUS_SCHEDULED) { ?>
247256
<span class="label label-success">scheduled</span>

0 commit comments

Comments
 (0)