summaryrefslogtreecommitdiff
path: root/app/Template/board/comments.php
diff options
context:
space:
mode:
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..75816af6
--- /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"><?= $this->e($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">
+ <?= $this->text->markdown($comment['comment']) ?>
+ </div>
+ </div>
+ <?php endforeach ?>
+</section>