summaryrefslogtreecommitdiff
path: root/app/Template/task_file/images.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2018-05-10 14:11:22 -0700
committerFrédéric Guillot <fred@kanboard.net>2018-05-10 14:11:22 -0700
commitecc9d80671fdfd4434ac7ecf3113507e6a06da64 (patch)
tree0ac26c4855812450bfd2ea664c6d50f44727de9a /app/Template/task_file/images.php
parent56c2a6e5433819449f2b08c334f9e9992a68d65f (diff)
Add link to open images in a new tab
Diffstat (limited to 'app/Template/task_file/images.php')
-rw-r--r--app/Template/task_file/images.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/Template/task_file/images.php b/app/Template/task_file/images.php
index c03e5648..997aed00 100644
--- a/app/Template/task_file/images.php
+++ b/app/Template/task_file/images.php
@@ -19,6 +19,9 @@
<a href="#" class="dropdown-menu dropdown-menu-link-text" title="<?= $this->text->e($file['name']) ?>"><?= $this->text->e($file['name']) ?> <i class="fa fa-caret-down"></i></a>
<ul>
<li>
+ <?= $this->url->icon('external-link', t('View file'), 'FileViewerController', 'image', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id']), false, '', '', true) ?>
+ </li>
+ <li>
<?= $this->url->icon('download', t('Download'), 'FileViewerController', 'download', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id'])) ?>
</li>
<?php if ($this->user->hasProjectAccess('TaskFileController', 'remove', $task['project_id'])): ?>