Skip to content

Commit

Permalink
Added direct link to logs for jobs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel-KM committed Aug 12, 2018
1 parent 1b63c67 commit c93ab43
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions application/view/omeka/admin/job/browse.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@ $sortHeadings = [
<table class="tablesaw" data-tablesaw-mode="stack">
<thead>
<tr>
<th><?php echo $this->translate('ID'); ?></th>
<th><?php echo $this->translate('Id / Params'); ?></th>
<th><?php echo $this->translate('Date'); ?></th>
<th><?php echo $this->translate('Class'); ?></th>
<th><?php echo $this->translate('Status'); ?></th>
<th><?php echo $this->translate('Status / Log'); ?></th>
<th><?php echo $this->translate('Owner'); ?></th>
</tr>
</thead>
Expand All @@ -56,11 +57,15 @@ $sortHeadings = [
}
?>
<tr>
<td>
<?php echo $job->link($escape($job->id())); ?>
</td>
<td><?php echo $job->link($escape($job->id())); ?></td>
<td><?php echo $escape($this->i18n()->dateFormat($job->started(), null, \Omeka\View\Helper\i18n::DATE_FORMAT_SHORT)); ?></td>
<td><?php echo $escape($job->jobClass()); ?></td>
<td><?php echo $escape($this->translate($job->statusLabel())); ?></td>
<td><?php if ($job->log()): ?>
<?php echo $this->hyperlink($this->translate($job->statusLabel()), $this->url('admin/id', ['controller' => 'job', 'action' => 'log', 'id' => $job->id()]), ['target' => '_blank']); ?>
<?php else: ?>
<?php echo $escape($this->translate($job->statusLabel())); ?>
<?php endif; ?>
</td>
<td><?php echo $ownerText; ?></td>
</tr>
<?php endforeach; ?>
Expand Down

0 comments on commit c93ab43

Please sign in to comment.