summaryrefslogtreecommitdiff
path: root/app/Template/board/tooltip_comments.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-07-04 11:14:21 -0400
committerFrederic Guillot <fred@kanboard.net>2015-07-04 11:14:21 -0400
commit554500aa493faa66b43b2ddce72338880a874724 (patch)
tree73066cfbe6af3cabf81b5be1dc5ef81e44792a21 /app/Template/board/tooltip_comments.php
parenta327f790ee036664439bf50e00c95fb8a0e1f97e (diff)
Refactoring to implement new layout with filters: board/calendar/list views (work in progress)
Diffstat (limited to 'app/Template/board/tooltip_comments.php')
-rw-r--r--app/Template/board/tooltip_comments.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/app/Template/board/tooltip_comments.php b/app/Template/board/tooltip_comments.php
new file mode 100644
index 00000000..2e2c0c1e
--- /dev/null
+++ b/app/Template/board/tooltip_comments.php
@@ -0,0 +1,16 @@
+<section>
+ <?php foreach ($comments as $comment): ?>
+ <p class="comment-title">
+ <?php if (! empty($comment['username'])): ?>
+ <span class="comment-username"><?= $this->e($comment['name'] ?: $comment['username']) ?></span> @
+ <?php endif ?>
+ <span class="comment-date"><?= dt('%b %e, %Y, %k:%M %p', $comment['date_creation']) ?></span>
+ </p>
+
+ <div class="comment-inner">
+ <div class="markdown">
+ <?= $this->text->markdown($comment['comment']) ?>
+ </div>
+ </div>
+ <?php endforeach ?>
+</section>