summaryrefslogtreecommitdiff
path: root/app/Template/board/comments.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-11-24 21:32:03 -0500
committerFrédéric Guillot <fred@kanboard.net>2014-11-24 21:32:03 -0500
commit37c6616e50dbce2a298a27513b9882bb105405b0 (patch)
tree32fc40db197717893aa08dc50fa275a6804fa34a /app/Template/board/comments.php
parent5d7cff35261b485a994f5346f682fd802218de8d (diff)
Integrate tooltips and code cleanup/fix bugs, see #166
Diffstat (limited to 'app/Template/board/comments.php')
-rw-r--r--app/Template/board/comments.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/app/Template/board/comments.php b/app/Template/board/comments.php
new file mode 100644
index 00000000..83d6bd9a
--- /dev/null
+++ b/app/Template/board/comments.php
@@ -0,0 +1,13 @@
+<section>
+ <?php foreach ($comments as $comment): ?>
+ <p class="comment-title">
+ <span class="comment-username"><?= Helper\escape($comment['name'] ?: $comment['username']) ?></span> @ <span class="comment-date"><?= dt('%b %e, %Y, %k:%M %p', $comment['date']) ?></span>
+ </p>
+
+ <div class="comment-inner">
+ <div class="markdown">
+ <?= Helper\markdown($comment['comment']) ?>
+ </div>
+ </div>
+ <?php endforeach ?>
+</section>