From ecc9d80671fdfd4434ac7ecf3113507e6a06da64 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Thu, 10 May 2018 14:11:22 -0700 Subject: Add link to open images in a new tab --- app/Template/board/tooltip_files.php | 5 +++-- app/Template/project_overview/images.php | 3 +++ app/Template/task_file/images.php | 3 +++ 3 files changed, 9 insertions(+), 2 deletions(-) (limited to 'app') 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 @@ - url->icon('download', t('download'), 'FileViewerController', 'download', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id'])) ?> + url->icon('download', t('Download'), 'FileViewerController', 'download', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id'])) ?> -  modal->large('eye', t('open file'), 'FileViewerController', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id'])) ?> +  modal->large('eye', t('View file'), 'FileViewerController', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id'])) ?> +  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) ?> diff --git a/app/Template/project_overview/images.php b/app/Template/project_overview/images.php index bc356fc2..dea26eb7 100644 --- a/app/Template/project_overview/images.php +++ b/app/Template/project_overview/images.php @@ -18,6 +18,9 @@