diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-06-20 17:53:49 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-06-20 17:53:49 -0400 |
commit | 22b26d0b4d68f0492275ec93eb4df1a975a8fc80 (patch) | |
tree | a588fd826ce48ea6c7ce6f3da3259f8ea6204726 /app/Template/comment/show.php | |
parent | b6b733b22f9e9f38786166c1274b135a99bce02a (diff) |
Change comments table structure (drop foreign key on user_id)
Diffstat (limited to 'app/Template/comment/show.php')
-rw-r--r-- | app/Template/comment/show.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/Template/comment/show.php b/app/Template/comment/show.php index 35394ccb..84077668 100644 --- a/app/Template/comment/show.php +++ b/app/Template/comment/show.php @@ -4,7 +4,12 @@ <?php if (! empty($comment['email'])): ?> <?= $this->user->avatar($comment['email'], $comment['name'] ?: $comment['username']) ?> <?php endif ?> - <span class="comment-username"><?= $this->e($comment['name'] ?: $comment['username']) ?></span> @ <span class="comment-date"><?= dt('%B %e, %Y at %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 at %k:%M %p', $comment['date_creation']) ?></span> </p> <div class="comment-inner"> |