diff options
author | rzeka <piotr@rzeka.net> | 2014-03-04 20:17:26 +0100 |
---|---|---|
committer | rzeka <piotr@rzeka.net> | 2014-03-04 20:17:26 +0100 |
commit | ccc54c65cf2191e35bd0294c0ffbae761b29f151 (patch) | |
tree | 98040c247f1a3165c83266ceeccc7b618f6f2303 /templates/task_show.php | |
parent | 86bee367846491be2a7f703affc1052318dac63d (diff) |
Added basic comments on tasks
Diffstat (limited to 'templates/task_show.php')
-rw-r--r-- | templates/task_show.php | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/templates/task_show.php b/templates/task_show.php index fffacf74..e910c951 100644 --- a/templates/task_show.php +++ b/templates/task_show.php @@ -60,5 +60,26 @@ </article> <?php endif ?> + <h3><?= t('Comments') ?></h3> + <?php if ($comments): ?> + <ul id="comments"> + <?php foreach ($comments as $comment): ?> + <li> + <p><?= $comment['username'] ?> @ <?= dt('%B %e, %G at %k:%M %p', $comment['date']) ?></p> + <?= Helper\markdown($comment['comment']) ?> + </li> + <?php endforeach ?> + </ul> + <?php else: ?> + <p><?= t('No comments') ?></p> + <?php endif ?> + + <form method="post" action="?controller=task&action=show&task_id=<?= $task['id'] ?>" autocomplete="off"> + <?= Helper\form_textarea('comment', $values, $errors) ?><br/> + + <div class="form-actions"> + <input type="submit" value="<?= t('Post comment') ?>" class="btn btn-blue"/> + </div> + </form> </section> -</section>
\ No newline at end of file +</section> |