File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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>
You can’t perform that action at this time.
0 commit comments