summaryrefslogtreecommitdiff
path: root/templates/board_show.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-05-21 22:33:57 -0400
committerFrédéric Guillot <fred@kanboard.net>2014-05-21 22:33:57 -0400
commita750b8ab2a0cb715da6fd9025a7ec8375db68a4d (patch)
tree5d5cdac1830336baf93b057e93cd2c1c56f405de /templates/board_show.php
parent57e40671af56ae49eda467d9d5949bf9707020ee (diff)
Add categories for projects and tasks
Diffstat (limited to 'templates/board_show.php')
-rw-r--r--templates/board_show.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/templates/board_show.php b/templates/board_show.php
index ad459399..719e3bdd 100644
--- a/templates/board_show.php
+++ b/templates/board_show.php
@@ -29,6 +29,7 @@
<div class="task draggable-item task-<?= $task['color_id'] ?>"
data-task-id="<?= $task['id'] ?>"
data-owner-id="<?= $task['owner_id'] ?>"
+ data-category-id="<?= $task['category_id'] ?>"
data-due-date="<?= $task['date_due'] ?>"
title="<?= t('View this task') ?>">
@@ -50,7 +51,17 @@
<a href="?controller=task&amp;action=show&amp;task_id=<?= $task['id'] ?>" title="<?= t('View this task') ?>"><?= Helper\escape($task['title']) ?></a>
</div>
+ <?php if ($task['category_id']): ?>
+ <div class="task-category-container">
+ <span class="task-category">
+ <?= Helper\in_list($task['category_id'], $categories) ?>
+ </span>
+ </div>
+ <?php endif ?>
+
+ <?php if (! empty($task['date_due']) || ! empty($task['nb_comments']) || ! empty($task['description'])): ?>
<div class="task-footer">
+
<?php if (! empty($task['date_due'])): ?>
<div class="task-date">
<?= dt('%B %e, %G', $task['date_due']) ?>
@@ -67,6 +78,8 @@
<?php endif ?>
</div>
</div>
+ <?php endif ?>
+
</div>
<?php endforeach ?>
</td>