summaryrefslogtreecommitdiff
path: root/app/Template/board/files.php
blob: 61529434e5a7d8d5b0ce36bf65de64d7c6e33e34 (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
<section>
    <table>
        <?php if (!empty($images)): ?>
            <?php foreach ($images as $file): ?>
                <tr>
                    <td><i class="fa fa-file-image-o fa-fw"></i>
                        <?=
                        $this->e($file['name'])
                        ?>
                    </td>
                    <td>
                        <i class="fa fa-download"></i> <?= $this->a(t('download'), 'file', 'download', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id'])) ?>
                        <i class="fa fa-eye"></i> <?= $this->a(t('open'), 'file', 'open', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id']), false, 'popover') ?>                                        
                    </td>
                </tr>
            <?php endforeach ?>
        <?php endif ?>
        <?php if (!empty($files)): ?>
            <?php foreach ($files as $file): ?>
                <tr>
                    <td><i class="fa <?= $this->file->get_icon($file['name']) ?> fa-fw"></i>
                        <?=
                        $this->e($file['name'])
                        ?>
                    </td>
                    <td>
                        <i class="fa fa-download"></i> <?= $this->a(t('download'), 'file', 'download', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id'])) ?>
                    </td>
                </tr>
            <?php endforeach ?>
        <?php endif ?>
    </table>
</section>