diff options
author | Frédéric Guillot <fred@kanboard.net> | 2018-05-10 14:11:22 -0700 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2018-05-10 14:11:22 -0700 |
commit | ecc9d80671fdfd4434ac7ecf3113507e6a06da64 (patch) | |
tree | 0ac26c4855812450bfd2ea664c6d50f44727de9a /app/Template/board/tooltip_files.php | |
parent | 56c2a6e5433819449f2b08c334f9e9992a68d65f (diff) |
Add link to open images in a new tab
Diffstat (limited to 'app/Template/board/tooltip_files.php')
-rw-r--r-- | app/Template/board/tooltip_files.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/Template/board/tooltip_files.php b/app/Template/board/tooltip_files.php index 5cb72741..390139eb 100644 --- a/app/Template/board/tooltip_files.php +++ b/app/Template/board/tooltip_files.php @@ -9,9 +9,10 @@ </tr> <tr> <td> - <?= $this->url->icon('download', t('download'), 'FileViewerController', 'download', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id'])) ?> + <?= $this->url->icon('download', t('Download'), 'FileViewerController', 'download', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id'])) ?> <?php if ($file['is_image'] == 1): ?> - <?= $this->modal->large('eye', t('open file'), 'FileViewerController', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id'])) ?> + <?= $this->modal->large('eye', t('View file'), 'FileViewerController', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id'])) ?> + <?= $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) ?> <?php endif ?> </td> </tr> |