Profile photo in stats bar
This commit is contained in:
parent
a2635c8c62
commit
a9df296015
@ -1,5 +1,8 @@
|
||||
<div id="stats" class="vote-container">
|
||||
<ul>
|
||||
<?php if ($this->post->user->has_avatar()) : ?>
|
||||
<li><?= $this->avatar($this->post->user, 1) ?></li>
|
||||
<?php endif ?>
|
||||
<li><?= $this->t('.id') ?>: <?= $this->post->id ?></li>
|
||||
<li><?= $this->t('.posted') ?>: <?= $this->t(['.posted_data_html', 'time' => $this->linkTo($this->t(['time.x_ago', 't' => $this->timeAgoInWords($this->post->created_at)]), ["#index", 'tags' => "date:" . substr($this->post->created_at, 0, 10)], ['title' => substr(date('r', strtotime($this->post->created_at)), 0, -6)]), 'user' => $this->linkToIf($this->post->user_id, $this->post->author(), ['user#show', 'id' => $this->post->user_id])]) ?></li>
|
||||
<?php if (current_user()->is_admin() && $this->post->approver) : ?>
|
||||
|
Reference in New Issue
Block a user