2022-05-04 23:09:46 +00:00
|
|
|
{% extends "submission.html" %}
|
|
|
|
|
|
|
|
{% set score=p.score %}
|
|
|
|
{% if v %}
|
|
|
|
{% set voted=p.voted %}
|
|
|
|
{% set adjust=voted %}
|
|
|
|
{% else %}
|
|
|
|
{% set voted=-2 %}
|
|
|
|
{% set adjust=0 %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% block title %}
|
|
|
|
<title>{{p.plaintitle(v)}}</title>
|
|
|
|
{% if p.is_banned %}
|
|
|
|
|
|
|
|
{% else %}
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div class="mb-2 p-3">
|
|
|
|
|
|
|
|
<div class="col-12">
|
|
|
|
|
2022-09-02 17:03:00 +00:00
|
|
|
<div id="post-{{p.id}}" class="banned {% if p.award_count('glowie', v) %}glow{% endif %} card d-flex flex-row-reverse flex-nowrap justify-content-end border-0 p-0 {% if voted==1 %} upvoted{% elif voted==-1 %} downvoted{% endif %}">
|
|
|
|
<div class="card-block my-md-auto">
|
2022-10-13 11:55:29 +00:00
|
|
|
<div class="post-meta text-left d-md-none mb-1">{% if p.over_18 %}<span class="badge badge-danger">+18</span> {% endif %}{% if p.is_banned %}removed by @{{p.ban_reason}} (Admin){% else %}[Deleted by user]{% endif %}</div>
|
2022-05-04 23:09:46 +00:00
|
|
|
<h5 class="card-title post-title text-left mb-0 mb-md-1">{{p.plaintitle(v)}}</h5>
|
2022-10-23 17:57:38 +00:00
|
|
|
<div class="post-meta text-left d-mob-none">{% if p.over_18 %}<span class="badge badge-danger">+18</span> {% endif %}{% if p.is_banned %}removed by @{{p.ban_reason}} (Admin){% else %}[Deleted by user]{% endif %}</div>
|
2022-05-04 23:09:46 +00:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2023-01-01 11:36:20 +00:00
|
|
|
|
2022-05-04 23:09:46 +00:00
|
|
|
<div id="voting" class="d-md-block my-auto mr-3 text-center">
|
2022-09-04 23:15:37 +00:00
|
|
|
<div class="post-{{p.id}}-up arrow-up mx-auto">
|
2022-05-04 23:09:46 +00:00
|
|
|
</div>
|
2022-09-04 23:15:37 +00:00
|
|
|
<span class="post-{{p.id}}-score-up score-up text-muted{% if voted!=1 %} d-none{% endif %}">✖</span>
|
|
|
|
<span class="post-{{p.id}}-score-none score text-muted{% if voted!=0 and voted!=-2 %} d-none{% endif %}">✖</span>
|
|
|
|
<span class="post-{{p.id}}-score-down score-down text-muted{% if voted!=-1 %} d-none{% endif %}">✖</span>
|
|
|
|
<div class="post-{{p.id}}-down arrow-down mx-auto">
|
2022-05-04 23:09:46 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
2022-10-06 00:57:08 +00:00
|
|
|
{% if v and v.admin_level >= PERMS['POST_COMMENT_MODERATION'] and p.body_html %}
|
2023-01-01 11:36:20 +00:00
|
|
|
<div class="post-body mt-4 mb-2">
|
2022-05-04 23:09:46 +00:00
|
|
|
{{p.body_html | safe}}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row mb-2 p-3">
|
|
|
|
<div class="col-12">
|
|
|
|
|
2022-10-23 17:57:38 +00:00
|
|
|
<div class="post-actions d-mob-none">
|
2022-05-04 23:09:46 +00:00
|
|
|
<ul class="list-inline text-left mb-2">
|
|
|
|
<li class="list-inline-item"><a href="{{p.permalink}}"><i
|
2022-12-29 14:20:27 +00:00
|
|
|
class="fas fa-comment-dots mr-2"></i><span class="comm-count">{{p.comment_count}}</span> Comment{{'s' if p.comment_count != 1 else ''}}</a>
|
2022-05-04 23:09:46 +00:00
|
|
|
</li>
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="comment-section">
|
|
|
|
{% with comments=p.replies %}
|
|
|
|
{% include "comments.html" %}
|
|
|
|
{% endwith %}
|
|
|
|
</div>
|
|
|
|
|
2022-07-04 03:37:48 +00:00
|
|
|
{% if offset %}
|
2022-12-29 14:20:27 +00:00
|
|
|
<script defer src="{{'js/view_more.js' | asset}}"></script>
|
2022-05-04 23:09:46 +00:00
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block mobileactions %}
|
|
|
|
|
|
|
|
<div class="row fixed-top bg-white shadow d-inline-flex d-md-none p-3" id="footer-actions" style="z-index: 3; top: 48px; transition: top cubic-bezier(0, 0, 0.2, 1) 220ms;">
|
|
|
|
<div class="col text-center">
|
|
|
|
<div class="post-actions mx-auto">
|
|
|
|
<ul class="list-inline">
|
|
|
|
<li id="voting-mobile" class="voting list-inline-item{% if voted==1 %} upvoted{% elif voted==-1 %} downvoted{% endif %}">
|
2022-09-04 23:15:37 +00:00
|
|
|
<span class="arrow-mobile-up mr-2 arrow-mobile-up">
|
2022-05-04 23:09:46 +00:00
|
|
|
<i class="fas fa-arrow-alt-up mx-0"></i>
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
2022-09-04 23:15:37 +00:00
|
|
|
<span class="post-{{p.id}}-score-mobile-up score-up text-muted{% if voted!=1 %} d-none{% endif %}">✖</span>
|
|
|
|
<span class="post-{{p.id}}-score-mobile-none score text-muted{% if voted!=0 and voted!=-2 %} d-none{% endif %}">✖</span>
|
|
|
|
<span class="post-{{p.id}}-score-mobile-down score-down text-muted{% if voted!=-1 %} d-none{% endif %}">✖</span>
|
2022-05-04 23:09:46 +00:00
|
|
|
|
|
|
|
|
2022-09-04 23:15:37 +00:00
|
|
|
<span class="arrow-mobile-down arrow-mobile-down ml-2 my-0">
|
2022-05-04 23:09:46 +00:00
|
|
|
<i class="fas fa-arrow-alt-down mx-0"></i>
|
|
|
|
</span>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% endblock %}
|