modals: move all modals to a modals dir

remotes/1693176582716663532/tmp_refs/heads/watchparty
justcool393 2022-11-15 13:14:29 -06:00 committed by TLSM
parent 5dedde4691
commit e1634d0940
17 changed files with 20 additions and 20 deletions

View File

@ -10,8 +10,8 @@
{{html_head.html_head(true, true, true, csp, "Chat", none, "", false)}}
<body>
{% include "header.html" %}
{% include "expanded_image_modal.html" %}
{% include "emoji_modal.html" %}
{% include "modals/expanded_image.html" %}
{% include "modals/emoji.html" %}
<div
id="root"

View File

@ -8,7 +8,7 @@
{% endif %}
{% if v %}
{% include "award_modal.html" %}
{% include "modals/award.html" %}
{% endif %}
{% include "popover.html" %}
@ -745,10 +745,10 @@
{% if not request.headers.get("xhr") %}
{% if v %}
{% include "gif_modal.html" %}
{% include "emoji_modal.html" %}
{% include "modals/gif.html" %}
{% include "modals/emoji.html" %}
{% if v.admin_level >= PERMS['USER_BAN'] %}
{% include "ban_modal.html" %}
{% include "modals/ban.html" %}
{% endif %}
<div class="modal fade" id="deleteCommentModal" tabindex="-1" role="dialog" aria-labelledby="deleteCommentModalTitle" aria-hidden="true">

View File

@ -37,7 +37,7 @@
<p class="my-3">Warrant Canary has been moved to <a href="/search/posts/?q=%22Monthly%20Website%20Stats%20Post%22&sort=new&t=all">Monthly Website Stats Posts</a>.</p>
{% include "emoji_modal.html" %}
{% include "modals/emoji.html" %}
{% else %}
<h4>by email: {{EMAIL}}</h4>
{% endif %}

View File

@ -27,7 +27,7 @@
<body id="{% if request.path != '/comments' %}{% block pagetype %}frontpage{% endblock %}{% endif %}" {% if SITE_NAME == 'rDrama' and v and (v.is_banned or v.agendaposter) %}style="overflow-x: hidden;background:url(/assets/images/backgrounds/anime/1.webp?v=3) center center fixed; background-color: var(--background)"{% elif v and v.background %}style="{% if path != '/formatting' %}overflow-x: hidden; {% endif %} background:url(/assets/images/backgrounds/{{v.background}}?v=3) center center fixed; background-color: var(--background){% if 'anime' not in v.background %};background-size: cover{% endif %}"{% endif %}>
{% block Banner %}
{% include "expanded_image_modal.html" %}
{% include "modals/expanded_image.html" %}
{% if '@' not in request.path %}
{% if sub and SITE_NAME != 'WPD' %}

View File

@ -258,8 +258,8 @@
</div>
</div>
</div>
{% include "emoji_modal.html" %}
{% include "gif_modal.html" %}
{% include "modals/emoji.html" %}
{% include "modals/gif.html" %}
{% if v.flairchanged %}
<script>

View File

@ -598,11 +598,11 @@
</div>
{% if v and v.id==p.author_id %}
{% include "delete_post_modal.html" %}
{% include "modals/delete_post.html" %}
{% endif %}
{% if v %}
{% include "report_post_modal.html" %}
{% include "modals/report_post.html" %}
{% endif %}
{% if v and (v.id == p.author_id or v.admin_level >= PERMS['POST_EDITING']) %}

View File

@ -1,7 +1,7 @@
{%- import 'util/helpers.html' as help -%}
{% if v %}
{% include "award_modal.html" %}
{% include "modals/award.html" %}
{% endif %}
{% if SITE == 'pcmemes.net' %}
@ -415,10 +415,10 @@
{% endfor %}
{% if v %}
{% include "delete_post_modal.html" %}
{% include "report_post_modal.html" %}
{% include "modals/delete_post.html" %}
{% include "modals/report_post.html" %}
{% if v.admin_level >= PERMS['USER_BAN'] %}
{% include "ban_modal.html" %}
{% include "modals/ban.html" %}
{% endif %}
{% endif %}

View File

@ -154,8 +154,8 @@
<script defer src="{{'js/marked.js' | asset}}"></script>
<script defer src="{{'js/submit.js' | asset}}"></script>
{% include "emoji_modal.html" %}
{% include "gif_modal.html" %}
{% include "modals/emoji.html" %}
{% include "modals/gif.html" %}
</body>

View File

@ -624,7 +624,7 @@
{% endif %}
{% if v and v.id != u.id and '/comments' not in request.path %}
{% include "emoji_modal.html" %}
{% include "modals/emoji.html" %}
{% endif %}
{% endblock %}

View File

@ -33,7 +33,7 @@
{% if v %}
<div id='tax' class="d-none">{% if v.patron or u.patron %}0{% else %}0.03{% endif %}</div>
<div id="username" class="d-none">{{u.username}}</div>
{%- include "emoji_modal.html" -%}
{%- include "modals/emoji.html" -%}
<script defer src="{{'js/userpage_v.js' | asset}}"></script>
{% endif %}