summaryrefslogtreecommitdiff
path: root/app/Template
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-03-19 13:45:41 -0400
committerFrederic Guillot <fred@kanboard.net>2016-03-19 13:45:41 -0400
commit2e320ceeadf5e134352a9bb83efff93964a40f81 (patch)
treedeb85d0e68fa6abb7c6ab4ed750d18e837dbcf8b /app/Template
parentfe85d83621224b7f5ff29b12c57c4fee1caafc4a (diff)
Handle multiple avatar sizes
Diffstat (limited to 'app/Template')
-rw-r--r--app/Template/comment/show.php2
-rw-r--r--app/Template/event/events.php2
-rw-r--r--app/Template/header.php2
3 files changed, 3 insertions, 3 deletions
diff --git a/app/Template/comment/show.php b/app/Template/comment/show.php
index ebf4142b..ce456c5d 100644
--- a/app/Template/comment/show.php
+++ b/app/Template/comment/show.php
@@ -1,6 +1,6 @@
<div class="comment <?= isset($preview) ? 'comment-preview' : '' ?>" id="comment-<?= $comment['id'] ?>">
- <?= $this->user->avatar($comment['user_id'], $comment['username'], $comment['name'], $comment['email']) ?>
+ <?= $this->avatar->render($comment['user_id'], $comment['username'], $comment['name'], $comment['email']) ?>
<div class="comment-title">
<?php if (! empty($comment['username'])): ?>
diff --git a/app/Template/event/events.php b/app/Template/event/events.php
index 097da318..6bef8df4 100644
--- a/app/Template/event/events.php
+++ b/app/Template/event/events.php
@@ -17,7 +17,7 @@
&nbsp;<?= $this->dt->datetime($event['date_creation']) ?>
</p>
<div class="activity-content">
- <?= $this->user->avatar(
+ <?= $this->avatar->render(
$event['creator_id'],
$event['author_username'],
$event['author_name'],
diff --git a/app/Template/header.php b/app/Template/header.php
index d891118c..a8fd47f2 100644
--- a/app/Template/header.php
+++ b/app/Template/header.php
@@ -58,7 +58,7 @@
<?php endif ?>
<div class="dropdown">
- <a href="#" class="dropdown-menu dropdown-menu-link-icon"><i class="fa fa-user fa-fw"></i><i class="fa fa-caret-down"></i></a>
+ <a href="#" class="dropdown-menu dropdown-menu-link-icon"><?= $this->avatar->currentUserSmall('avatar-inline') ?><i class="fa fa-caret-down"></i></a>
<ul>
<li class="no-hover"><strong><?= $this->text->e($this->user->getFullname()) ?></strong></li>
<li>