summaryrefslogtreecommitdiff
path: root/app/Template/board/tooltip_files.php
blob: 4fa14b57f77a6d06294fdcbacc188884a7df8073 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<table class="table-small">
    <?php foreach ($files as $file): ?>
    <tr>
        <th>
            <i class="fa <?= $this->file->icon($file['name']) ?> fa-fw"></i>
            <?= $this->e($file['name']) ?>
        </th>
    </tr>
    <tr>
        <td>
            <i class="fa fa-download fa-fw"></i><?= $this->url->link(t('download'), 'TaskFile', 'download', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id'])) ?>
            <?php if ($file['is_image'] == 1): ?>
                &nbsp;<i class="fa fa-eye"></i> <?= $this->url->link(t('open file'), 'TaskFile', 'open', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id']), false, 'popover') ?>
            <?php endif ?>
        </td>
    </tr>
    <?php endforeach ?>
</table>