diff --git a/app/Controller/CategoryController.php b/app/Controller/CategoryController.php
index c2b8c2a68..292e7119a 100644
--- a/app/Controller/CategoryController.php
+++ b/app/Controller/CategoryController.php
@@ -25,6 +25,7 @@ class CategoryController extends BaseController
$this->response->html($this->helper->layout->project('category/index', array(
'categories' => $this->categoryModel->getAll($project['id']),
'project' => $project,
+ 'colors' => $this->colorModel->getList(),
'title' => t('Categories'),
)));
}
diff --git a/app/Controller/ProjectTagController.php b/app/Controller/ProjectTagController.php
index 719853368..815363293 100644
--- a/app/Controller/ProjectTagController.php
+++ b/app/Controller/ProjectTagController.php
@@ -17,6 +17,7 @@ class ProjectTagController extends BaseController
$this->response->html($this->helper->layout->project('project_tag/index', array(
'project' => $project,
'tags' => $this->tagModel->getAllByProject($project['id']),
+ 'colors' => $this->colorModel->getList(),
'title' => t('Project tags management'),
)));
}
diff --git a/app/Controller/TagController.php b/app/Controller/TagController.php
index b550cf581..6ad9ac8f5 100644
--- a/app/Controller/TagController.php
+++ b/app/Controller/TagController.php
@@ -16,6 +16,7 @@ class TagController extends BaseController
{
$this->response->html($this->helper->layout->config('tag/index', array(
'tags' => $this->tagModel->getAllByProject(0),
+ 'colors' => $this->colorModel->getList(),
'title' => t('Settings').' > '.t('Global tags management'),
)));
}
diff --git a/app/Template/category/index.php b/app/Template/category/index.php
index 1ef67fdb9..36f666da9 100644
--- a/app/Template/category/index.php
+++ b/app/Template/category/index.php
@@ -12,6 +12,7 @@
| = t('Category Name') ?> |
+ = t('Color') ?> |
@@ -34,6 +35,7 @@
= $this->app->tooltipMarkdown($category['description']) ?>
+ | = $this->text->e($colors[$category['color_id']] ?? '') ?> |
diff --git a/app/Template/project_tag/index.php b/app/Template/project_tag/index.php
index 7c3470566..1322bf233 100644
--- a/app/Template/project_tag/index.php
+++ b/app/Template/project_tag/index.php
@@ -13,6 +13,7 @@
diff --git a/app/Template/tag/index.php b/app/Template/tag/index.php
index 834e8e7cf..b32c9a7a9 100644
--- a/app/Template/tag/index.php
+++ b/app/Template/tag/index.php
@@ -12,12 +12,14 @@