Allow to associate project categories to colors

The color is then used as background in the board and list views
This commit is contained in:
Julian Maurice
2018-08-09 19:45:51 +02:00
parent efd64d842d
commit ae3ade0908
12 changed files with 33 additions and 7 deletions

View File

@@ -4,7 +4,7 @@
<?= $this->text->e($task['column_name']) ?>
<?php if (! empty($task['category_id'])): ?>
<span class="table-list-category">
<span class="table-list-category <?= $task['category_color_id'] ? "color-{$task['category_color_id']}" : '' ?>">
<?php if ($this->user->hasProjectAccess('TaskModificationController', 'edit', $task['project_id'])): ?>
<?= $this->url->link(
$this->text->e($task['category_name']),