Improve card icons alignment on board

This commit is contained in:
Frederic Guillot
2017-02-11 14:29:44 -05:00
parent 49b3eeca2c
commit 28052edb22
7 changed files with 108 additions and 90 deletions

View File

@@ -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,