From 1f2f5d2c102b65abf44eeaa9b7864566a409ff80 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 23 Aug 2015 11:09:14 -0400 Subject: Improve file attachments tooltip on the board --- app/Controller/Board.php | 3 +-- app/Template/board/tooltip_files.php | 49 +++++++++++++----------------------- 2 files changed, 19 insertions(+), 33 deletions(-) (limited to 'app') diff --git a/app/Controller/Board.php b/app/Controller/Board.php index 976e44fc..179c6b3c 100644 --- a/app/Controller/Board.php +++ b/app/Controller/Board.php @@ -179,8 +179,7 @@ class Board extends Base $task = $this->getTask(); $this->response->html($this->template->render('board/tooltip_files', array( - 'files' => $this->file->getAllDocuments($task['id']), - 'images' => $this->file->getAllImages($task['id']), + 'files' => $this->file->getAll($task['id']), 'task' => $task, ))); } diff --git a/app/Template/board/tooltip_files.php b/app/Template/board/tooltip_files.php index 70e3d371..96428d3b 100644 --- a/app/Template/board/tooltip_files.php +++ b/app/Template/board/tooltip_files.php @@ -1,31 +1,18 @@ -
- - - - - - - - - - - - - - - - - -
- - e($file['name']) ?> - - url->link(t('download'), 'file', 'download', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id'])) ?> - url->link(t('open file'), 'file', 'open', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id']), false, 'popover') ?> -
- - e($file['name']) ?> - - url->link(t('download'), 'file', 'download', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id'])) ?> -
-
+ + + + + + + + + +
+ + e($file['name']) ?> +
+ url->link(t('download'), 'file', 'download', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id'])) ?> + +   url->link(t('open file'), 'file', 'open', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id']), false, 'popover') ?> + +
\ No newline at end of file -- cgit v1.2.3