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/index.php

33 lines
1.1 KiB
PHP
Raw Normal View History

2013-10-27 01:06:58 +02:00
<h4><?= $this->t('.title') ?></h4>
<table width="100%" class="highlightable">
<thead>
<tr>
<th width="5%"><?= $this->t('.table.id') ?></th>
<th width="15%"><?= $this->t('.table.type') ?></th>
<th width="10%"><?= $this->t('.table.status') ?></th>
<th width="40%"><?= $this->t('.table.data') ?></th>
<?php if (current_user()->is_mod_or_higher()) : ?>
<th width="30%"><?= $this->t('.table.message') ?></th>
<?php endif ?>
</tr>
</thead>
<tbody>
<?php foreach ($this->job_tasks as $job_task) : ?>
<tr>
<td><?= $job_task->id ?></td>
<td><?= $this->linkTo($this->h($job_task->task_type), ['action' => "show", 'id' => $job_task->id]) ?></td>
<td><?= $this->h($job_task->status) ?></td>
<td><?= $this->h($job_task->pretty_data()) ?: "ERROR" ?></td>
<?php if (current_user()->is_mod_or_higher()) : ?>
<td><?= $this->h($job_task->status_message) ?></td>
<?php endif ?>
</tr>
<?php endforeach ?>
</tbody>
</table>
<div id="paginator">
<?= $this->willPaginate($this->job_tasks) ?>
</div>