forked from rDrama/rDrama
fix
parent
fd1b30a955
commit
6aa5f3750c
|
@ -171,64 +171,66 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ul class="relative z-10 flex flex-wrap gap-2 items-center mb-1">
|
{% if p.flair or p.over_18 or p.club or p.stickied or (p.is_pinned and request.path.startswith('/@')) or p.private or p.awards %}
|
||||||
<!-- Flair -->
|
<ul class="relative z-10 flex flex-wrap gap-2 items-center mb-1">
|
||||||
{% if p.flair %}
|
<!-- Flair -->
|
||||||
<li>
|
{% if p.flair %}
|
||||||
<span class="badge badge-purple">
|
<li>
|
||||||
{{p.flair | safe}}
|
<span class="badge badge-purple">
|
||||||
</span>
|
{{p.flair | safe}}
|
||||||
</li>
|
</span>
|
||||||
{% endif %}
|
</li>
|
||||||
<!-- NSFW -->
|
{% endif %}
|
||||||
{% if p.over_18 %}
|
<!-- NSFW -->
|
||||||
<li>
|
{% if p.over_18 %}
|
||||||
<span class="badge badge-red">+18</span>
|
<li>
|
||||||
</li>
|
<span class="badge badge-red">+18</span>
|
||||||
{% endif %}
|
</li>
|
||||||
<!-- Country Club -->
|
{% endif %}
|
||||||
{% if p.club %}
|
<!-- Country Club -->
|
||||||
<li>
|
{% if p.club %}
|
||||||
<span class="badge badge-yellow">Country Club</span>
|
<li>
|
||||||
</li>
|
<span class="badge badge-yellow">Country Club</span>
|
||||||
{% endif %}
|
</li>
|
||||||
<!-- Stickied -->
|
{% endif %}
|
||||||
{% if p.stickied %}
|
<!-- Stickied -->
|
||||||
<li>
|
{% if p.stickied %}
|
||||||
<span class="badge badge-pink">
|
<li>
|
||||||
<i class="fas fa-thumbtack fa-rotate--45 fa-sm fa-fw"></i>
|
<span class="badge badge-pink">
|
||||||
Pinned {% if p.stickied.startswith('t:') %}until {{p.stickied[2:]}}{% else %}by @{{p.stickied}}{%endif%}
|
<i class="fas fa-thumbtack fa-rotate--45 fa-sm fa-fw"></i>
|
||||||
</span>
|
Pinned {% if p.stickied.startswith('t:') %}until {{p.stickied[2:]}}{% else %}by @{{p.stickied}}{%endif%}
|
||||||
</li>
|
</span>
|
||||||
{% endif %}
|
</li>
|
||||||
<!-- Pinned -->
|
{% endif %}
|
||||||
{% if p.is_pinned and request.path.startswith('/@') %}
|
<!-- Pinned -->
|
||||||
<li>
|
{% if p.is_pinned and request.path.startswith('/@') %}
|
||||||
<span class="badge badge-green">
|
<li>
|
||||||
<i class="fas fa-thumbtack fa-rotate--45 fa-sm fa-fw"></i>
|
<span class="badge badge-green">
|
||||||
Pinned to profile
|
<i class="fas fa-thumbtack fa-rotate--45 fa-sm fa-fw"></i>
|
||||||
</span>
|
Pinned to profile
|
||||||
</li>
|
</span>
|
||||||
{% endif %}
|
</li>
|
||||||
<!-- Private -->
|
{% endif %}
|
||||||
{% if p.private %}
|
<!-- Private -->
|
||||||
<li>
|
{% if p.private %}
|
||||||
<span class="badge badge-blue">
|
<li>
|
||||||
<i class="fas fa-lock-alt fa-sm fa-fw1"></i>
|
<span class="badge badge-blue">
|
||||||
Draft
|
<i class="fas fa-lock-alt fa-sm fa-fw1"></i>
|
||||||
</span>
|
Draft
|
||||||
</li>
|
</span>
|
||||||
{% endif %}
|
</li>
|
||||||
<!-- Awards -->
|
{% endif %}
|
||||||
{% if p.awards %}
|
<!-- Awards -->
|
||||||
{% for a in p.awards %}
|
{% if p.awards %}
|
||||||
<li>
|
{% for a in p.awards %}
|
||||||
<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>
|
||||||
</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>
|
||||||
{% endfor %}
|
</li>
|
||||||
{% endif %}
|
{% endfor %}
|
||||||
</ul>
|
{% endif %}
|
||||||
|
</ul>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<h5 class="post-title font-medium text-lg md:text-xl leading-5 mb-2">
|
<h5 class="post-title font-medium text-lg md:text-xl leading-5 mb-2">
|
||||||
<a {% if v and v.newtab %}target="_blank"{% endif %} href="{{p.permalink}}" class="stretched-link text-black dark:text-gray-200 hover:text-primary visited:text-gray-700 dark:visited:text-gray-400 break-words" style="word-break: break-word;">
|
<a {% if v and v.newtab %}target="_blank"{% endif %} href="{{p.permalink}}" class="stretched-link text-black dark:text-gray-200 hover:text-primary visited:text-gray-700 dark:visited:text-gray-400 break-words" style="word-break: break-word;">
|
||||||
{{p.realtitle(v) | safe}}
|
{{p.realtitle(v) | safe}}
|
||||||
|
|
Loading…
Reference in New Issue