From caf8cb3323e4ef9af2f76b639785d083540d4687 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 19 Mar 2016 16:51:25 -0400 Subject: Improve board tooltips --- app/Template/board/task_footer.php | 11 +++--- app/Template/board/tooltip_comments.php | 2 +- app/Template/board/tooltip_external_links.php | 38 +++++++++++---------- app/Template/board/tooltip_files.php | 38 +++++++++++---------- app/Template/board/tooltip_subtasks.php | 34 +++++++++++-------- app/Template/board/tooltip_tasklinks.php | 48 ++++++++++++++++----------- 6 files changed, 98 insertions(+), 73 deletions(-) (limited to 'app/Template/board') diff --git a/app/Template/board/task_footer.php b/app/Template/board/task_footer.php index 7d651a79..b20e4a3e 100644 --- a/app/Template/board/task_footer.php +++ b/app/Template/board/task_footer.php @@ -39,6 +39,13 @@
+ + + + text->e($task['score']) ?> + + + @@ -80,10 +87,6 @@ - - text->e($task['score']) ?> - - text->e($task['time_estimated']).'h' ?> diff --git a/app/Template/board/tooltip_comments.php b/app/Template/board/tooltip_comments.php index 1db07356..a1071848 100644 --- a/app/Template/board/tooltip_comments.php +++ b/app/Template/board/tooltip_comments.php @@ -1,4 +1,4 @@ -
+
render('comment/show', array( 'comment' => $comment, diff --git a/app/Template/board/tooltip_external_links.php b/app/Template/board/tooltip_external_links.php index 24cd1d88..65331864 100644 --- a/app/Template/board/tooltip_external_links.php +++ b/app/Template/board/tooltip_external_links.php @@ -1,20 +1,22 @@ - - - - - - - +
+
- - - + + + - -
- - - text->e($link['title']) ?> - - text->e($link['dependency_label']) ?> -
\ No newline at end of file + + + + + + + text->e($link['title']) ?> + + + text->e($link['dependency_label']) ?> + + + + +
diff --git a/app/Template/board/tooltip_files.php b/app/Template/board/tooltip_files.php index 8ee18626..5ade5b5b 100644 --- a/app/Template/board/tooltip_files.php +++ b/app/Template/board/tooltip_files.php @@ -1,18 +1,20 @@ - - - - - - - - - -
- - text->e($file['name']) ?> -
- url->link(t('download'), 'FileViewer', 'download', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id'])) ?> - -   url->link(t('open file'), 'FileViewer', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id']), false, 'popover') ?> - -
\ No newline at end of file +
+ + + + + + + + + +
+ + text->e($file['name']) ?> +
+ url->link(t('download'), 'FileViewer', 'download', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id'])) ?> + +   url->link(t('open file'), 'FileViewer', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id']), false, 'popover') ?> + +
+
diff --git a/app/Template/board/tooltip_subtasks.php b/app/Template/board/tooltip_subtasks.php index 126a319f..0322d373 100644 --- a/app/Template/board/tooltip_subtasks.php +++ b/app/Template/board/tooltip_subtasks.php @@ -1,14 +1,22 @@ - - - - - + + +
- subtask->toggleStatus($subtask, $task['project_id']) ?> - - +
+ + + + + + + + + - - -
+ subtask->toggleStatus($subtask, $task['project_id']) ?> + + text->e($subtask['name'] ?: $subtask['username']) ?> - -
+ + + +
+
diff --git a/app/Template/board/tooltip_tasklinks.php b/app/Template/board/tooltip_tasklinks.php index cabe43d8..6424c39d 100644 --- a/app/Template/board/tooltip_tasklinks.php +++ b/app/Template/board/tooltip_tasklinks.php @@ -1,24 +1,34 @@ -