master
kek7198 2021-11-24 21:00:38 -06:00
parent 360d1aa11e
commit 28bb043fb8
1 changed files with 208 additions and 208 deletions

View File

@ -1,5 +1,5 @@
{% if v %}
{% include "award_modal.html" %}
{% include "award_modal.html" %}
{% endif %}
{% for p in listing %}
@ -9,19 +9,19 @@
{% set score=ups-downs %}
{% if v %}
{% set voted= p.voted %}
{% set voted= p.voted %}
{% else %}
{% set voted=-2 %}
{% set voted=-2 %}
{% endif %}
{% if request.host == 'pcmemes.net' %}
{% set cc='SPLASH MOUNTAIN' %}
{% set cc='SPLASH MOUNTAIN' %}
{% else %}
{% set cc='COUNTRY CLUB' %}
{% set cc='COUNTRY CLUB' %}
{% endif %}
{% if p.active_flags %}
<div id="flaggers-{{p.id}}" class="flaggers hidden">
<div id="flaggers-{{p.id}}" class="flaggers hidden">
<strong><i class="far fa-fw fa-flag"></i> Reported by:</strong>
<pre></pre>
<ul style="padding-left:20px; margin-bottom: 0;">
@ -29,7 +29,7 @@
<li><a style="font-weight:bold" href="{{f.user.url}}">{{f.user.username}}</a>{% if f.reason %}: {{f.reason | safe}}{% endif %} {% if v.admin_level==6 %}<a href="javascript:void(0)" onclick="post_toast('/del_report/p{{ f.id }}')">[remove]</a>{% endif %}</li>
{% endfor %}
</ul>
</div>
</div>
{% endif %}
<li id="post-{{p.id}}" class="mb-4 pb-4 border-b border-gray-700 {% 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 %}">
@ -145,7 +145,7 @@
</div>
</div>
</div>
<!-- <div class="card-footer md:hidden mt-2 {% if request.path == '/changelog' %}px-0{% endif %}">
<div class="post-actions">
@ -222,22 +222,22 @@
</li>
{% if not p.club or v and v.paid_dues %}
{% if p.realbody(v) %}
<div class="hidden bg-gray-900 rounded-bottom shadow-inner p-3 mb-3" id="post-text-{{p.id}}">
{% if p.realbody(v) %}
<div class="hidden bg-gray-900 rounded-bottom shadow-inner p-3 mb-3" id="post-text-{{p.id}}">
{{p.realbody(v) | safe}}
</div>
{% endif %}
</div>
{% endif %}
{% if p.is_image and not p.over_18 and ((v and v.cardview) or (not v and environ.get('CARD_VIEW') == '1')) %}
<div style="text-align: center" class="mt-3 mb-4">
{% if p.is_image and not p.over_18 and ((v and v.cardview) or (not v and environ.get('CARD_VIEW') == '1')) %}
<div style="text-align: center" class="mt-3 mb-4">
<a target="_blank" rel="nofollow noopener noreferrer" href="{{p.url}}">
<img loading="lazy" src="/assets/images/loading.gif" data-src="{{p.url}}" class="img-fluid" style="max-height:500px;" alt="Unable to load image">
</a>
</div>
{% endif %}
</div>
{% endif %}
{% if p.url and p.url.lower().endswith('.mp4') %}
<div id="video-{{p.id}}" style="text-align: center" class="{% if p.over_18 or not ((v and v.cardview) or (not v and environ.get('CARD_VIEW') == '1')) %}hidden{% endif %} mt-4">
{% if p.url and p.url.lower().endswith('.mp4') %}
<div id="video-{{p.id}}" style="text-align: center" class="{% if p.over_18 or not ((v and v.cardview) or (not v and environ.get('CARD_VIEW') == '1')) %}hidden{% endif %} mt-4">
<video controls loop preload="metadata" style="max-width: 100%">
<source src="{{p.realurl(v)}}" type="video/mp4">
</video>
@ -251,24 +251,24 @@
<iframe loading="lazy" src="{{p.url}}" frameborder="0" style="max-width: 100%" width="600" height="337" allow="fullscreen"></iframe>
</div>
{% endif %}
{% endif %}
{% endif %}
{% else %}
{% else %}
{% if request.path.endswith('/admin/queue') %}
{% if request.path.endswith('/admin/queue') %}
<div class="row no-gutters">
<div class="row no-gutters">
<div class="col">
<div class="text-center py-7">
<div class="h4 p-2">This queue is empty. (That's a good thing.)</div>
</div>
</div>
</div>
</div>
{% elif u %}
{% if v and v.id == u.id %}
<div class="row no-gutters">
{% elif u %}
{% if v and v.id == u.id %}
<div class="row no-gutters">
<div class="col">
<div class="text-center px-3 my-3">
<span class="fa-stack fa-2x text-muted mb-4">
@ -280,11 +280,11 @@
{% if "saved" not in request.full_path %}<a href="/submit" class="btn btn-primary">Create a post</a>{% endif %}
</div>
</div>
</div>
</div>
{% else %}
<div class="row no-gutters">
{% else %}
<div class="row no-gutters">
<div class="col">
<div class="text-center px-3 my-3">
<span class="fa-stack fa-2x text-muted mb-4">
@ -297,36 +297,36 @@
</pre>
</div>
</div>
</div>
{% endif %}
</div>
{% endif %}
{% else %}
<div class="flex flex-col items-center justify-center py-24 md:py-48">
{% else %}
<div class="flex flex-col items-center justify-center py-24 md:py-48">
<img loading="lazy" src="https://c.tenor.com/NhDy-AkelhQAAAAM/marsey-drama.gif" class="w-20 h-20 mb-4 rounded-md object-cover"/>
<h2 class="text-xl font-bold leading-normal font-heading">No posts here :/</h2>
<p class="text-muted">
Looks like there is no content atm.
</p>
</div>
</div>
{% endif %}
{% endif %}
{% endfor %}
{% endfor %}
{% if v %}
{% if v %}
{% include "delete_post_modal.html" %}
{% include "report_post_modal.html" %}
{% if v.admin_level == 6 %}
{% include "ban_modal.html" %}
{% endif %}
{% endif %}
{% include "expanded_image_modal.html" %}
{% endif %}
{% include "expanded_image_modal.html" %}
{% block popovers %}
{% block popovers %}
{% for p in listing %}
<div style="display:none" id="popover-{{p.id}}">
{% for p in listing %}
<div style="display:none" id="popover-{{p.id}}">
<div class="popover-user-profile" role="tooltip">
<img class="w-100 h-64 object-cover" src="{{p.author.banner_url}}">
<div class="flex align-items-end px-3 mt-n6 mb-3">
@ -358,15 +358,15 @@
</a>
</div>
</div>
</div>
{% endfor %}
</div>
{% endfor %}
{% endblock %}
{% endblock %}
<script src="/assets/js/new_comments_count.js?v=54"></script>
<script src="/assets/js/new_comments_count.js?v=54"></script>
{% for p in listing %}
<script>
{% for p in listing %}
<script>
(() => {
const date = new Date({{p.created_utc*1000}});
document.getElementById('timestamp-{{p.id}}').title = date.toString();
@ -388,10 +388,10 @@
{%endif%}
{%endif%}
})()
</script>
{% endfor %}
</script>
{% endfor %}
<style>
<style>
.mod:before {
content: '(((';
}
@ -408,4 +408,4 @@
background: -webkit-linear-gradient(left, red, orange, yellow, green, blue, indigo, violet );
text-shadow:-1px -1px 0 black,1px -1px 0 black,-1px 1px 0 black,1px 1px 0 black;
}
</style>
</style>