Browse Source

Display NSFW logo in _post

pull/395/head
Timothée Jaussoin 9 years ago
parent
commit
25f91ceaa9
  1. 12
      app/widgets/Post/_post.tpl

12
app/widgets/Post/_post.tpl

@ -56,7 +56,11 @@
{if="$post->isMicroblog()"}
{$url = $contact->getPhoto('s')}
{if="$url"}
{if="$post->isNSFW()"}
<span class="primary icon bubble color red tiny">
+18
</span>
{elseif="$url"}
<span class="icon primary bubble">
<a href="#" onclick="Post_ajaxGetContact('{$contact->jid}')">
<img src="{$url}">
@ -70,7 +74,11 @@
</span>
{/if}
{else}
{if="$post->logo"}
{if="$post->isNSFW()"}
<span class="primary icon bubble color red tiny">
+18
</span>
{elseif="$post->logo"}
<span class="primary icon bubble">
<a href="{$c->route('community', [$post->origin, $post->node])}">
<img src="{$post->getLogo()}">

Loading…
Cancel
Save