From 2f8beda6af9a3f360379ed689c2eb81833e23039 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Tue, 7 Jul 2015 20:19:57 -0400 Subject: Move board collapse/expand mode to server side to avoid board flickering --- app/Template/board/task_private.php | 88 +++++++++++++++++++------------------ app/Template/layout.php | 2 +- app/Template/project/filters.php | 13 +++--- 3 files changed, 53 insertions(+), 50 deletions(-) (limited to 'app/Template') diff --git a/app/Template/board/task_private.php b/app/Template/board/task_private.php index 3f4010ea..7eaff580 100644 --- a/app/Template/board/task_private.php +++ b/app/Template/board/task_private.php @@ -10,53 +10,55 @@ render('board/task_menu', array('task' => $task)) ?> - + board->isCollapsed($project['id'])): ?> +
+ + + e($this->user->getInitials($task['assignee_name'] ?: $task['assignee_username'])) ?> + - + + url->link($this->e($task['title']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'task-board-collapsed-title') ?> + +
+ +
-
+ + + () + + - - - () - - + + url->link( + (! empty($task['owner_id']) ? ($task['assignee_name'] ?: $task['assignee_username']) : t('Nobody assigned')), + 'board', + 'changeAssignee', + array('task_id' => $task['id'], 'project_id' => $task['project_id']), + false, + 'task-board-popover', + t('Change assignee') + ) ?> + - - url->link( - (! empty($task['owner_id']) ? ($task['assignee_name'] ?: $task['assignee_username']) : t('Nobody assigned')), - 'board', - 'changeAssignee', - array('task_id' => $task['id'], 'project_id' => $task['project_id']), - false, - 'task-board-popover', - t('Change assignee') - ) ?> - + +
+ dt->age($task['date_creation']) ?> + dt->age($task['date_moved']) ?> +
+ +
+ - -
- dt->age($task['date_creation']) ?> - dt->age($task['date_moved']) ?> -
- -
- +
+ url->link($this->e($task['title']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, '', t('View this task')) ?> +
-
- url->link($this->e($task['title']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, '', t('View this task')) ?> + render('board/task_footer', array( + 'task' => $task, + 'not_editable' => $not_editable, + )) ?>
- - render('board/task_footer', array( - 'task' => $task, - 'not_editable' => $not_editable, - )) ?> -
+
diff --git a/app/Template/layout.php b/app/Template/layout.php index d804d3d5..a9f1cbc3 100644 --- a/app/Template/layout.php +++ b/app/Template/layout.php @@ -48,7 +48,7 @@