diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-03-30 21:27:49 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-03-30 21:27:49 -0400 |
commit | 01f9ee3410bb4f6878033b353f5a0731397632d0 (patch) | |
tree | abf46f22cca9ac8d6aa410336ff5d5682708c6e0 /app/Template/comment/show.php | |
parent | b17f4b28ca948d223f12ceab96e38c018f32c6fd (diff) |
Add Gravatar integration
Diffstat (limited to 'app/Template/comment/show.php')
-rw-r--r-- | app/Template/comment/show.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/Template/comment/show.php b/app/Template/comment/show.php index 23389c06..98c29441 100644 --- a/app/Template/comment/show.php +++ b/app/Template/comment/show.php @@ -1,9 +1,11 @@ <div class="comment <?= isset($preview) ? 'comment-preview' : '' ?>" id="comment-<?= $comment['id'] ?>"> <p class="comment-title"> + <?php if (! empty($comment['email'])): ?> + <?= $this->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> </p> - <div class="comment-inner"> <?php if (! isset($preview)): ?> |