Add link to open images in a new tab

This commit is contained in:
Frédéric Guillot
2018-05-10 14:11:22 -07:00
parent 56c2a6e543
commit ecc9d80671
3 changed files with 9 additions and 2 deletions

View File

@@ -18,6 +18,9 @@
<div class="dropdown">
<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>