summaryrefslogtreecommitdiff
path: root/app/Templates/file_show.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-05-25 15:02:27 -0400
committerFrédéric Guillot <fred@kanboard.net>2014-05-25 15:02:27 -0400
commitf9753e91d288c4d87d6a83ffe994d312eae5a3fd (patch)
tree96877bed70873e55aa5139f0ac6245c817e5911d /app/Templates/file_show.php
parent9ddeb5d978db9b1f223c98bbe83ac40fc4474225 (diff)
Add subtasks
Diffstat (limited to 'app/Templates/file_show.php')
-rw-r--r--app/Templates/file_show.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/app/Templates/file_show.php b/app/Templates/file_show.php
new file mode 100644
index 00000000..674861dd
--- /dev/null
+++ b/app/Templates/file_show.php
@@ -0,0 +1,17 @@
+<div class="page-header">
+ <h2><?= t('Attachments') ?></h2>
+</div>
+
+<ul class="task-show-files">
+<?php foreach ($files as $file): ?>
+ <li>
+ <a href="?controller=file&amp;action=download&amp;file_id=<?= $file['id'] ?>&amp;task_id=<?= $task['id'] ?>"><?= Helper\escape($file['name']) ?></a>
+ <span class="task-show-file-actions">
+ <?php if ($file['is_image']): ?>
+ <a href="?controller=file&amp;action=open&amp;file_id=<?= $file['id'] ?>&amp;task_id=<?= $task['id'] ?>" class="popover"><?= t('open') ?></a>,
+ <?php endif ?>
+ <a href="?controller=file&amp;action=confirm&amp;file_id=<?= $file['id'] ?>&amp;task_id=<?= $task['id'] ?>"><?= t('remove') ?></a>
+ </span>
+ </li>
+<?php endforeach ?>
+</ul> \ No newline at end of file