Add colors to tag and category list

Add colors to:

- Global tag list
- Project tag list
- Project category list
This commit is contained in:
Timo
2019-11-22 04:36:19 +01:00
committed by Frédéric Guillot
parent 75682398c1
commit f0b53863fb
6 changed files with 10 additions and 1 deletions

View File

@@ -12,6 +12,7 @@
<table class="table-striped">
<tr>
<th><?= t('Category Name') ?></th>
<th><?= t('Color') ?></th>
</tr>
<?php foreach ($categories as $category): ?>
<tr>
@@ -34,6 +35,7 @@
<?= $this->app->tooltipMarkdown($category['description']) ?>
<?php endif ?>
</td>
<td><?= $this->text->e($colors[$category['color_id']] ?? '') ?></td>
</tr>
<?php endforeach ?>
</table>