summaryrefslogtreecommitdiff
path: root/app/Template/file_viewer/show.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-02-16 21:12:43 -0500
committerFrederic Guillot <fred@kanboard.net>2016-02-16 21:12:43 -0500
commit8936792f6f7a408dae7e0a6a41274202822acd9c (patch)
treea07a005ef7095472f7a64779df85825fe30a97b2 /app/Template/file_viewer/show.php
parent5bbc903dcab12dcf53abc40bf67c2cd7898e0420 (diff)
Add file attachements to projects
Diffstat (limited to 'app/Template/file_viewer/show.php')
-rw-r--r--app/Template/file_viewer/show.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/Template/file_viewer/show.php b/app/Template/file_viewer/show.php
new file mode 100644
index 00000000..e0d1b21e
--- /dev/null
+++ b/app/Template/file_viewer/show.php
@@ -0,0 +1,8 @@
+<div class="page-header">
+ <h2><?= $this->e($file['name']) ?></h2>
+ <div class="task-file-viewer">
+ <?php if ($file['is_image']): ?>
+ <img src="<?= $this->url->href('FileViewer', 'image', $params) ?>" alt="<?= $this->e($file['name']) ?>">
+ <?php endif ?>
+ </div>
+</div> \ No newline at end of file