From 28052edb22cb0a65d3ad81c7654a0673de82e1ac Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 11 Feb 2017 14:29:44 -0500 Subject: Improve card icons alignment on board --- app/Template/board/task_footer.php | 163 +++++++++++++++++++----------------- app/Template/board/task_private.php | 27 +++--- app/Template/board/task_public.php | 17 ++-- 3 files changed, 111 insertions(+), 96 deletions(-) (limited to 'app/Template/board') diff --git a/app/Template/board/task_footer.php b/app/Template/board/task_footer.php index 15f1f713..23f4e32e 100644 --- a/app/Template/board/task_footer.php +++ b/app/Template/board/task_footer.php @@ -29,84 +29,95 @@
- - - - text->e($task['score']) ?> - - - - - - - $task['date_due']): ?> - +
+ + + text->e($task['reference']) ?> + + +
+
+ + + + + + + + + + text->e($task['score']) ?> + + + + + + text->e($task['time_spent']) ?>/text->e($task['time_estimated']) ?>h + + + + + + + dt->date($task['date_due']) ?> + + +
+
+ + + + + + + + + + + + + + + + + + +   + + + +   + + + +   + + + + + + + + + +
+ dt->age($task['date_creation']) ?> + dt->age($task['date_moved']) ?> +
- + - - dt->date($task['date_due']) ?> - - - - - - - - - - - - - - - - - - - - -   - - - -   - - - -   - - - - - - - - - - - text->e($task['time_spent']) ?>/text->e($task['time_estimated']) ?>h - - - - - - - - - - hook->render('template:board:task:icons', array('task' => $task)) ?> - - task->formatPriority($project, $task) ?> - - -
- dt->age($task['date_creation']) ?> - dt->age($task['date_moved']) ?> -
- - - + + task->formatPriority($project, $task) ?> + + hook->render('template:board:task:icons', array('task' => $task)) ?> +
hook->render('template:board:task:footer', array('task' => $task)) ?> diff --git a/app/Template/board/task_private.php b/app/Template/board/task_private.php index 01da46db..3201d4e2 100644 --- a/app/Template/board/task_private.php +++ b/app/Template/board/task_private.php @@ -32,20 +32,21 @@
- - user->hasProjectAccess('TaskModificationController', 'edit', $task['project_id'])): ?> - render('task/dropdown', array('task' => $task)) ?> - - - +
+ user->hasProjectAccess('TaskModificationController', 'edit', $task['project_id'])): ?> + render('task/dropdown', array('task' => $task)) ?> + + + - - - () - - + + + text->e($task['assignee_name'] ?: $task['assignee_username']) ?> + + - render('board/task_avatar', array('task' => $task)) ?> + render('board/task_avatar', array('task' => $task)) ?> +
hook->render('template:board:private:task:before-title', array('task' => $task)) ?>
@@ -53,6 +54,8 @@
hook->render('template:board:private:task:after-title', array('task' => $task)) ?> + + render('board/task_footer', array( 'task' => $task, 'not_editable' => $not_editable, diff --git a/app/Template/board/task_public.php b/app/Template/board/task_public.php index 82eb6535..8e429ea4 100644 --- a/app/Template/board/task_public.php +++ b/app/Template/board/task_public.php @@ -1,14 +1,15 @@
+
+ url->link('#'.$task['id'], 'TaskViewController', 'readonly', array('task_id' => $task['id'], 'token' => $project['token'])) ?> - url->link('#'.$task['id'], 'TaskViewController', 'readonly', array('task_id' => $task['id'], 'token' => $project['token'])) ?> + + + text->e($task['assignee_name'] ?: $task['assignee_username']) ?> + + - - - () - - - - render('board/task_avatar', array('task' => $task)) ?> + render('board/task_avatar', array('task' => $task)) ?> +
hook->render('template:board:public:task:before-title', array('task' => $task)) ?>
-- cgit v1.2.3