summaryrefslogtreecommitdiff
path: root/app/Template/board/comments.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-06-20 20:55:50 -0400
committerFrederic Guillot <fred@kanboard.net>2015-06-20 20:55:50 -0400
commit98fd34bfe340fae6d0fd3b7333b6f9a6647cbae2 (patch)
treed22b7bff634a05e73f89d423938776df43554f52 /app/Template/board/comments.php
parent7b947ebdbd3b6bcd9de10ea4255bfa11fc88695c (diff)
Improve automatic action to create comments based on commit messages
Diffstat (limited to 'app/Template/board/comments.php')
-rw-r--r--app/Template/board/comments.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/Template/board/comments.php b/app/Template/board/comments.php
index 75816af6..2e2c0c1e 100644
--- a/app/Template/board/comments.php
+++ b/app/Template/board/comments.php
@@ -1,7 +1,10 @@
<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>
+ <?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">