summaryrefslogtreecommitdiff
path: root/app/Template/project_overview
diff options
context:
space:
mode:
authorphecho <phecho@163.com>2016-12-13 19:49:16 +0800
committerphecho <phecho@163.com>2016-12-13 19:49:16 +0800
commit89feb0ae03c5a492526df077b2a3b382b0428ca8 (patch)
tree19d2c52ecdeda45179957515b7e9fb8b1acc3300 /app/Template/project_overview
parentf83178bef8084bfe57963b1820e73b4a9ab0bab5 (diff)
Implement feature #2843
Diffstat (limited to 'app/Template/project_overview')
-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>