summaryrefslogtreecommitdiff
path: root/app/Template/project_overview/files.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-12-19 22:04:15 -0500
committerFrederic Guillot <fred@kanboard.net>2016-12-19 22:04:15 -0500
commiteed51aef63d55d8906f3f0e6c707ef1f1739d5ff (patch)
tree401e36caaa4e5b7410ec9d3986494248899f3e3b /app/Template/project_overview/files.php
parentefb786b5c5ab34b9245d5d40d3a3a2810f09a30d (diff)
parent89feb0ae03c5a492526df077b2a3b382b0428ca8 (diff)
Merge pull-request #2891
Diffstat (limited to 'app/Template/project_overview/files.php')
-rw-r--r--app/Template/project_overview/files.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/Template/project_overview/files.php b/app/Template/project_overview/files.php
index 826e6325..1326a7d1 100644
--- a/app/Template/project_overview/files.php
+++ b/app/Template/project_overview/files.php
@@ -18,6 +18,11 @@
<i class="fa fa-eye fa-fw"></i>
<?= $this->url->link(t('View file'), 'FileViewerController', 'show', array('project_id' => $project['id'], 'file_id' => $file['id']), false, 'popover') ?>
</li>
+ <?php elseif ($this->file->getBrowserViewType($file['name']) !== null): ?>
+ <li>
+ <i class="fa fa-eye fa-fw"></i>
+ <?= $this->url->link(t('View file'), 'FileViewerController', 'browser', array('project_id' => $project['id'], 'file_id' => $file['id']), false, '', '', true) ?>
+ </li>
<?php endif ?>
<li>
<i class="fa fa-download fa-fw"></i>