diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-03-19 11:56:28 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-03-19 11:56:28 -0400 |
commit | 344f585a325a77e86874d0deebe7cd927569bdb4 (patch) | |
tree | 559a8cb8ee955bdd14ee0fcd0bc1646ec35dc3ad /app/Template/board | |
parent | 9d4ba1471dd8410e1597a18478dbb3b7789d4ec7 (diff) |
Improve comments design
Diffstat (limited to 'app/Template/board')
-rw-r--r-- | app/Template/board/tooltip_comments.php | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/app/Template/board/tooltip_comments.php b/app/Template/board/tooltip_comments.php index 6665bc7d..1db07356 100644 --- a/app/Template/board/tooltip_comments.php +++ b/app/Template/board/tooltip_comments.php @@ -1,16 +1,9 @@ -<section> +<div class="comment-tooltip"> <?php foreach ($comments as $comment): ?> - <p class="comment-title"> - <?php if (! empty($comment['username'])): ?> - <span class="comment-username"><?= $this->text->e($comment['name'] ?: $comment['username']) ?></span> @ - <?php endif ?> - <span class="comment-date"><?= $this->dt->datetime($comment['date_creation']) ?></span> - </p> - - <div class="comment-inner"> - <div class="markdown"> - <?= $this->text->markdown($comment['comment']) ?> - </div> - </div> + <?= $this->render('comment/show', array( + 'comment' => $comment, + 'task' => $task, + 'hide_actions' => true, + )) ?> <?php endforeach ?> -</section> +</div> |