Profile photo in stats bar

This commit is contained in:
Yukimi Kazari 2016-12-17 11:06:19 -05:00
parent a2635c8c62
commit a9df296015

View File

@ -1,6 +1,9 @@
<div id="stats" class="vote-container">
<ul>
<li><?= $this->t('.id') ?>: <?= $this->post->id ?></li>
<?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) : ?>
<li><?= $this->t('.approver') ?>: <?= $this->post->approver->name ?></li>