Swap category and avatar on the card
This commit is contained in:
@@ -1,3 +1,23 @@
|
||||
<?php if (! empty($task['owner_id'])): ?>
|
||||
<div class="task-board-avatars">
|
||||
<span
|
||||
<?php if ($this->user->hasProjectAccess('taskmodification', 'edit', $task['project_id'])): ?>
|
||||
class="task-board-assignee task-board-change-assignee"
|
||||
data-url="<?= $this->url->href('BoardPopover', 'changeAssignee', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>">
|
||||
<?php else: ?>
|
||||
class="task-board-assignee">
|
||||
<?php endif ?>
|
||||
<?= $this->avatar->small(
|
||||
$task['owner_id'],
|
||||
$task['assignee_username'],
|
||||
$task['assignee_name'],
|
||||
$task['assignee_email'],
|
||||
'avatar-inline'
|
||||
) ?>
|
||||
</span>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if (! empty($task['category_id'])): ?>
|
||||
<div class="task-board-category-container">
|
||||
<span class="task-board-category">
|
||||
@@ -18,26 +38,6 @@
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if (! empty($task['owner_id'])): ?>
|
||||
<div class="task-board-avatars">
|
||||
<span
|
||||
<?php if ($this->user->hasProjectAccess('taskmodification', 'edit', $task['project_id'])): ?>
|
||||
class="task-board-assignee task-board-change-assignee"
|
||||
data-url="<?= $this->url->href('BoardPopover', 'changeAssignee', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>">
|
||||
<?php else: ?>
|
||||
class="task-board-assignee">
|
||||
<?php endif ?>
|
||||
<?= $this->avatar->small(
|
||||
$task['owner_id'],
|
||||
$task['assignee_username'],
|
||||
$task['assignee_name'],
|
||||
$task['assignee_email'],
|
||||
'avatar-inline'
|
||||
) ?>
|
||||
</span>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
<div class="task-board-icons">
|
||||
<?php if (! empty($task['date_due'])): ?>
|
||||
<span class="task-board-date <?= time() > $task['date_due'] ? 'task-board-date-overdue' : '' ?>">
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -63,11 +63,12 @@ div.task-board-status-closed {
|
||||
|
||||
/* category label */
|
||||
.task-board-category-container {
|
||||
margin-top: 8px;
|
||||
text-align: right;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.task-board-category {
|
||||
font-weight: bold;
|
||||
font-weight: 500;
|
||||
color: #000;
|
||||
border: 1px solid #555;
|
||||
padding: 1px 2px 1px 2px;
|
||||
@@ -80,7 +81,7 @@ div.task-board-status-closed {
|
||||
|
||||
/* avatars on the card */
|
||||
.task-board-avatars {
|
||||
text-align: right;
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
/* task icons footer */
|
||||
|
||||
Reference in New Issue
Block a user