diff --git a/ChangeLog b/ChangeLog index deb865ce3..bd0d22fff 100644 --- a/ChangeLog +++ b/ChangeLog @@ -21,6 +21,7 @@ New features: Improvements: +* Improve file attachments tooltip on the board * Adjust automatically the height of the placeholder during drag and drop * Show all tasks when using no search criteria * Add column vertical scrolling diff --git a/app/Controller/Board.php b/app/Controller/Board.php index 976e44fc4..179c6b3cf 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 70e3d3718..96428d3bf 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