summaryrefslogtreecommitdiff
path: root/app/Template/board/tooltip_tasklinks.php
blob: 08432e712da405e971095b6c7a699e7db8fa59f2 (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
34
<div class="tooltip-large">
    <table class="table-small">
    <?php foreach ($links as $label => $grouped_links): ?>
        <tr>
            <th colspan="4"><?= t($label) ?></th>
        </tr>
        <?php foreach ($grouped_links as $link): ?>
            <tr>
                <td class="column-10">
                    <?= $this->task->getProgress($link).'%' ?>
                </td>
                <td class="column-60">
                    <?= $this->url->link(
                        $this->text->e('#'.$link['task_id'].' '.$link['title']),
                        'TaskViewController', 'show', array('task_id' => $link['task_id'], 'project_id' => $link['project_id']),
                        false,
                        $link['is_active'] ? '' : 'task-link-closed'
                    ) ?>
                </td>
                <td>
                    <?php if (! empty($link['task_assignee_username'])): ?>
                        <?= $this->text->e($link['task_assignee_name'] ?: $link['task_assignee_username']) ?>
                    <?php else: ?>
                        <?= t('Not assigned') ?>
                    <?php endif ?>
                </td>
                <td>
                    <?= $link['project_name'] ?>
                </td>
            </tr>
        <?php endforeach ?>
    <?php endforeach ?>
    </table>
</div>