Show result link only for finished jobs

This commit is contained in:
Eike Foken
2011-09-28 18:15:15 +02:00
parent 6fd88abc24
commit d21e60037b

View File

@@ -149,8 +149,18 @@
<td><?=$job['name'];?></td> <td><?=$job['name'];?></td>
<td><span class="<?=$job['cssclass'];?>"><?=$job['humanstatus'];?></span></td> <td><span class="<?=$job['cssclass'];?>"><?=$job['humanstatus'];?></span></td>
<td> <td>
<a href="<?=site_url('results/experiment/' . $job['id']);?>" title="<?= sprintf(_('Show results for this experiment'), $job['name']);?>"><?=_('Show results');?></a> | <?php
<a href="<?=site_url('experiments/edit/' . $job['id']);?>" title="<?= sprintf(_('Edit this experiment'), $job['name']);?>"><?=_('Edit');?></td> if ($job['status'] == 'complete'):
?>
<a href="<?=site_url('results/experiment/' . $job['experiment_id']);?>" title="<?= sprintf(_('Show results for this experiment'), $job['name']);?>"><?=_('Show results');?></a>
<?php
else:
?>
-
<?php
endif;
?>
</td>
</tr> </tr>
<?php <?php
endforeach; endforeach;