summaryrefslogtreecommitdiff
path: root/app/Template/task/transitions.php
blob: 4a9f22ce42c8fdf715aaf9b5c7d5e9a048e12748 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?= $this->render('task/details', array(
    'task' => $task,
    'tags' => $tags,
    'project' => $project,
    'editable' => false,
)) ?>

<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-striped table-scrolling">
        <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><?= $this->dt->datetime($transition['date']) ?></td>
            <td><?= $this->text->e($transition['src_column']) ?></td>
            <td><?= $this->text->e($transition['dst_column']) ?></td>
            <td><?= $this->url->link($this->text->e($transition['name'] ?: $transition['username']), 'UserViewController', 'show', array('user_id' => $transition['user_id'])) ?></td>
            <td><?= $this->dt->duration($transition['time_spent']) ?></td>
        </tr>
        <?php endforeach ?>
    </table>
<?php endif ?>