mirror of
https://github.com/YunoHost-Apps/kanboard_ynh.git
synced 2024-09-03 19:36:17 +02:00
26 lines
No EOL
1 KiB
PHP
26 lines
No EOL
1 KiB
PHP
<div class="page-header">
|
|
<h2><?= t('Transitions') ?></h2>
|
|
</div>
|
|
|
|
<?php if (empty($transitions)): ?>
|
|
<p class="alert"><?= t('There is nothing to show.') ?></p>
|
|
<?php else: ?>
|
|
<table class="table-stripped">
|
|
<tr>
|
|
<th><?= t('Date') ?></th>
|
|
<th><?= t('Source column') ?></th>
|
|
<th><?= t('Destination column') ?></th>
|
|
<th><?= t('Executer') ?></th>
|
|
<th><?= t('Time spent in the column') ?></th>
|
|
</tr>
|
|
<?php foreach ($transitions as $transition): ?>
|
|
<tr>
|
|
<td><?= dt('%B %e, %Y at %k:%M %p', $transition['date']) ?></td>
|
|
<td><?= $this->e($transition['src_column']) ?></td>
|
|
<td><?= $this->e($transition['dst_column']) ?></td>
|
|
<td><?= $this->a($this->e($transition['name'] ?: $transition['username']), 'user', 'show', array('user_id' => $transition['user_id'])) ?></td>
|
|
<td><?= n(round($transition['time_spent'] / 3600, 2)).' '.t('hours') ?></td>
|
|
</tr>
|
|
<?php endforeach ?>
|
|
</table>
|
|
<?php endif ?>
|