diff options
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 |