forked from rDrama/rDrama
1
0
Fork 0
master
kek7198 2021-12-06 13:44:15 -06:00
parent 301fc42900
commit 8a2e2ea611
1 changed files with 52 additions and 0 deletions

View File

@ -240,6 +240,58 @@
{% endif %}
</div>
<!-- Mobile post meta, awards, etc -->
<div class="p-2.5 md:p-0">
<ul class="flex flex-wrap gap-3 items-center">
<!-- Awards -->
{% if p.awards %}
{% for a in p.awards %}
<li>
<i class="{{a.class_list}} fa-sm fa-fw" data-bs-toggle="tooltip" data-bs-placement="bottom" data-bs-original-title="{{a.title}} Award given by @{{a.user.username}}"></i>
</li>
{% endfor %}
{% endif %}
<!-- NSFW -->
{% if p.over_18 %}
<li>
<span class="badge badge-red">+18</span>
</li>
{% endif %}
{% if p.club %}
<li>
<span class="badge badge-yellow">Country Club</span>
<li>
{% endif %}
<!-- Banned -->
{% if p.bannedfor and p.author.banned_by %}
<li>
<i class="fad fa-gavel fa-sm fa-fw text-red-600" data-bs-toggle="tooltip" data-bs-placement="bottom" title="" data-bs-original-title="User was banned for this post by @{{p.author.banned_by.username}}"></i>
</li>
{% endif %}
<!-- Stickied -->
{% if p.stickied %}
<li>
<i id="pinned-{{p.id}}" class="fas fa-thumbtack fa-rotate--45 fa-sm fa-fw text-admin" data-bs-toggle="tooltip" data-bs-placement="bottom"></i>
<span class="font-heading text-xs text-red-500">
Pinned {% if p.stickied.startswith('t:') %}until {{p.stickied[2:]}}{% else %}by @{{p.stickied}}{%endif%}
</span>
</li>
{% endif %}
<!-- Pinned -->
{% if p.is_pinned %}
<li>
<i class="fas fa-thumbtack fa-rotate--45 fa-sm fa-fw text-admin" data-bs-toggle="tooltip" data-bs-placement="bottom" data-bs-original-title="Pinned to profile"></i>
</li>
{% endif %}
<!-- Private -->
{% if p.private %}
<li>
<span class="badge border-blue">Draft</span>
</li>
{% endif %}
</ul>
</div>
<!-- Post -->
<div id="post-root" class="sm:py-4 my-2.5 sm:my-0">