This repository has been archived on 2024-10-25. You can view files and clone it, but cannot push or open issues or pull requests.
Sequenzia/app/views/job_task/show.php

18 lines
862 B
PHP
Raw Normal View History

2013-10-27 01:06:58 +02:00
<h4><?= $this->t(['.title', 'id' => $this->job_task->id]) ?></h4>
<ul>
<li><strong><?= $this->t('.table.type') ?></strong>: <?= $this->job_task->task_type ?></li>
<li><strong><?= $this->t('.table.status') ?></strong>: <?= $this->job_task->status ?></li>
<li><strong><?= $this->t('.table.data') ?></strong>: <?= $this->job_task->pretty_data() ?: "ERROR" ?></li>
<?php if (current_user()->is_mod_or_higher()) : ?>
<li><strong><?= $this->t('.table.message') ?></strong>: <?= $this->job_task->status_message ?></li>
<?php endif ?>
</ul>
<?php $this->contentFor('subnavbar', function(){ ?>
<li><?= $this->linkTo($this->t(".nav.list"), ['action' => "index"]) ?></li>
<?php if ($this->job_task->status == "error") : ?>
<li><?= $this->linkTo($this->t(".nav.restart"), ["#restart", 'id' => $this->job_task->id]) ?></li>
<?php endif ?>
<?php }) ?>