diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-11-20 20:26:21 -0500 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-11-20 20:26:21 -0500 |
commit | 11b6381cc0f0583a11287202463d20a0ac1ebf00 (patch) | |
tree | c973b6686467272ae56914f5e143d09de476d084 /app/Template/file/show.php | |
parent | b84edaaf13ba854290099b0df452f61e9b595a17 (diff) |
Move and clean some templates to a subfolder
Diffstat (limited to 'app/Template/file/show.php')
-rw-r--r-- | app/Template/file/show.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/app/Template/file/show.php b/app/Template/file/show.php new file mode 100644 index 00000000..92a7c100 --- /dev/null +++ b/app/Template/file/show.php @@ -0,0 +1,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 ?>
\ No newline at end of file |