summaryrefslogtreecommitdiff
path: root/app/Template/file/show.php
blob: 92a7c1003885da590d39c72f5e423cb365520a13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php if (! empty($files)): ?>
<div id="attachments" class="task-show-section">

    <div class="page-header">
        <h2><?= t('Attachments') ?></h2>
    </div>

    <ul class="task-show-files">
    <?php foreach ($files as $file): ?>
        <li>
            <?= Helper\a(Helper\escape($file['name']), 'file', 'download', array('task_id' => $task['id'], 'file_id' => $file['id'])) ?>
            <span class="task-show-file-actions">
                <?php if ($file['is_image']): ?>
                    <?= Helper\a(t('open'), 'file', 'open', array('task_id' => $task['id'], 'file_id' => $file['id']), false, 'file-popover') ?>,
                <?php endif ?>
                <?= Helper\a(t('remove'), 'file', 'confirm', array('task_id' => $task['id'], 'file_id' => $file['id'])) ?>
            </span>
        </li>
    <?php endforeach ?>
    </ul>

</div>
<?php endif ?>