diff options
author | Frederic Guillot <fred@kanboard.net> | 2017-02-11 14:29:44 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2017-02-11 14:29:44 -0500 |
commit | 28052edb22cb0a65d3ad81c7654a0673de82e1ac (patch) | |
tree | 6c516c475ac69ff3f5489e74687096af86199091 /app/Template/board/task_private.php | |
parent | 49b3eeca2c79b67fa67f82cddec95fe340711040 (diff) |
Improve card icons alignment on board
Diffstat (limited to 'app/Template/board/task_private.php')
-rw-r--r-- | app/Template/board/task_private.php | 27 |
1 files changed, 15 insertions, 12 deletions
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 @@ </div> <?php else: ?> <div class="task-board-expanded"> - <div class="task-board-saving-icon" style="display: none;"><i class="fa fa-spinner fa-pulse fa-2x"></i></div> - <?php if ($this->user->hasProjectAccess('TaskModificationController', 'edit', $task['project_id'])): ?> - <?= $this->render('task/dropdown', array('task' => $task)) ?> - <?php else: ?> - <strong><?= '#'.$task['id'] ?></strong> - <?php endif ?> + <div class="task-board-header"> + <?php if ($this->user->hasProjectAccess('TaskModificationController', 'edit', $task['project_id'])): ?> + <?= $this->render('task/dropdown', array('task' => $task)) ?> + <?php else: ?> + <strong><?= '#'.$task['id'] ?></strong> + <?php endif ?> - <?php if ($task['reference']): ?> - <span class="task-board-reference" title="<?= t('Reference') ?>"> - (<?= $task['reference'] ?>) - </span> - <?php endif ?> + <?php if (! empty($task['owner_id'])): ?> + <span class="task-board-assignee"> + <?= $this->text->e($task['assignee_name'] ?: $task['assignee_username']) ?> + </span> + <?php endif ?> - <?= $this->render('board/task_avatar', array('task' => $task)) ?> + <?= $this->render('board/task_avatar', array('task' => $task)) ?> + </div> <?= $this->hook->render('template:board:private:task:before-title', array('task' => $task)) ?> <div class="task-board-title"> @@ -53,6 +54,8 @@ </div> <?= $this->hook->render('template:board:private:task:after-title', array('task' => $task)) ?> + <div class="task-board-saving-icon" style="display: none;"><i class="fa fa-spinner fa-pulse fa-2x"></i></div> + <?= $this->render('board/task_footer', array( 'task' => $task, 'not_editable' => $not_editable, |