forked from rDrama/rDrama
1
0
Fork 0

remove 2 vestigal if statements

master
Aevann1 2022-10-18 13:17:54 +02:00
parent 465160dbe6
commit f9841bf049
1 changed files with 37 additions and 42 deletions

View File

@ -49,8 +49,6 @@
<div id="post-{{p.id}}" class="actual-post {% if p.unread %}unread{% else %}card{% endif %} {% if p.is_banned %} banned{% endif %}{% if p.deleted_utc %} deleted{% endif %}{% if p.stickied %} stickied{% endif %}{% if voted==1 %} upvoted{% elif voted==-1 %} downvoted{% endif %}{% if p.over_18 %} nsfw{% endif %}">
<div class="d-flex flex-row-reverse flex-md-row flex-nowrap justify-content-end">
{% if not postembed %}
<div class="voting my-2 d-none d-md-flex pr-2">
{% if v and request.path.startswith('/@') and v.admin_level < PERMS['VIEW_VOTE_BUTTONS_ON_USER_PAGE'] %}
<div tabindex="0" role="button" onclick="vote('post', '{{p.id}}', '1')" class="post-{{p.id}}-up mx-auto arrow-up upvote-button post-{{p.id}}-up {% if voted==1 %}active{% else %}d-none{% endif %}"></div>
@ -77,7 +75,6 @@
{% endif %}
</div>
{% endif %}
<div class="card-header bg-transparent border-0 d-flex flex-row flex-nowrap pl-2 pl-md-0 p-0 mr-md-2">
@ -248,7 +245,6 @@
</a>
</li>
{% endif %}
{% if not postembed %}
{% if v and request.path.startswith('/@') and v.admin_level < PERMS['VIEW_VOTE_BUTTONS_ON_USER_PAGE'] %}
<li id="voting-{{p.id}}-mobile" class="voting list-inline-item d-md-none">
@ -281,7 +277,6 @@
</span>
</li>
{% endif %}
{% endif %}
</ul>
</div>
</div>