Added uploader avatar

This commit is contained in:
Marcin Kurczewski 2013-10-22 09:24:17 +02:00
parent 7cc2a98992
commit 739e5d3b5d
2 changed files with 13 additions and 7 deletions

View file

@ -46,6 +46,11 @@ embed {
background-color: silver;
}
#sidebar .uploader img {
vertical-align: middle;
margin: 0 0.5em 0 0;
}
i.icon-prev {
background-position: -12px -1px;
}

View file

@ -44,18 +44,12 @@
<div class="unit details">
<h1>details</h1>
<div class="key-value safety">
<span class="key">Safety:</span>
<span class="value" title="<?php echo $val = TextHelper::camelCaseToHumanCase(PostSafety::toString($this->context->transport->post->safety)) ?>">
<?php echo $val ?>
</span>
</div>
<div class="key-value uploader">
<span class="key">Uploader:</span>
<?php if ($this->context->transport->post->uploader): ?>
<span class="value" title="<?php echo $val = $this->context->transport->post->uploader->name ?>">
<a href="<?php echo \Chibi\UrlHelper::route('user', 'view', ['name' => $this->context->transport->post->uploader->name]) ?>">
<img src="<?php echo htmlentities($this->context->transport->post->uploader->getAvatarUrl(16)) ?>" alt="<?php echo $this->context->transport->post->uploader->name ?>"/>
<?php echo $val ?>
</a>
</span>
@ -66,6 +60,13 @@
<?php endif ?>
</div>
<div class="key-value safety">
<span class="key">Safety:</span>
<span class="value" title="<?php echo $val = TextHelper::camelCaseToHumanCase(PostSafety::toString($this->context->transport->post->safety)) ?>">
<?php echo $val ?>
</span>
</div>
<div class="key-value date">
<span class="key">Date:</span>
<span class="value" title="<?php echo $val = date('Y-m-d H:i', $this->context->transport->post->upload_date) ?>">