summaryrefslogtreecommitdiff
path: root/app/Templates/task_comments.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-09-08 23:19:40 +0200
committerFrédéric Guillot <fred@kanboard.net>2014-09-08 23:19:40 +0200
commite383c069f1aeba49ea9905f77a51bf663e614b0e (patch)
tree8164aa9e1fad104997e53c6e261bec991631dbbb /app/Templates/task_comments.php
parent8c6df9ef0cea757d25cbbcc6fa7cee86d8739627 (diff)
Add public view for tasks
Diffstat (limited to 'app/Templates/task_comments.php')
-rw-r--r--app/Templates/task_comments.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/app/Templates/task_comments.php b/app/Templates/task_comments.php
new file mode 100644
index 00000000..acd84952
--- /dev/null
+++ b/app/Templates/task_comments.php
@@ -0,0 +1,15 @@
+<?php if (! empty($comments)): ?>
+<div id="comments" class="task-show-section">
+ <div class="page-header">
+ <h2><?= t('Comments') ?></h2>
+ </div>
+
+ <?php foreach ($comments as $comment): ?>
+ <?= Helper\template('comment_show', array(
+ 'comment' => $comment,
+ 'task' => $task,
+ 'not_editable' => isset($not_editable) && $not_editable,
+ )) ?>
+ <?php endforeach ?>
+</div>
+<?php endif ?> \ No newline at end of file