summaryrefslogtreecommitdiff
path: root/templates/board_public.php
diff options
context:
space:
mode:
authorFrédéric Guillot <contact@fredericguillot.com>2014-03-05 22:27:48 -0500
committerFrédéric Guillot <contact@fredericguillot.com>2014-03-05 22:27:48 -0500
commit544f9924241f9b2caaf83ead203161ea41e5f1cf (patch)
treedcb5ba8a202fee673e395184795f570fd7c905ae /templates/board_public.php
parent1e994f34486da72662ff39f1c3e130e4480e30ab (diff)
Add a 'due date' field and display the number of comments on the board
Diffstat (limited to 'templates/board_public.php')
-rw-r--r--templates/board_public.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/templates/board_public.php b/templates/board_public.php
index 339c8035..4c8f7c92 100644
--- a/templates/board_public.php
+++ b/templates/board_public.php
@@ -40,6 +40,20 @@
<?= Helper\escape($task['title']) ?>
</div>
+ <div class="task-footer">
+ <?php if (! empty($task['date_due'])): ?>
+ <div class="task-date">
+ <?= dt('%B %e, %G', $task['date_due']) ?>
+ </div>
+ <?php endif ?>
+
+ <?php if (! empty($task['nb_comments'])): ?>
+ <div class="task-comment-counter">
+ <?= $task['nb_comments'] ?>
+ </div>
+ <?php endif ?>
+ </div>
+
</div>
</div>
<?php endforeach ?>