organize modals

This commit is contained in:
justcool393 2023-03-11 03:16:55 -06:00
parent b32d32a658
commit 8240ddcc43
7 changed files with 5 additions and 11 deletions

View file

@ -200,7 +200,7 @@
{% endif %}
{% endif %}
{% include "expanded_image_modal.html" %}
{% include "component/modal/expanded_image.html.html" %}
<script src="{{ 'js/comments+submission_listing.js' | asset }}"></script>
<script src="{{ 'js/comments.js' | asset }}"></script>

View file

@ -10,19 +10,13 @@
</button>
</div>
<div class="modal-body text-center">
<div class="py-4">
<i class="fas fa-trash-alt text-muted d-none d-md-block" style="font-size: 3.5rem;"></i>
</div>
<div class="h4 d-md-none">Delete post?</div>
<p class="d-none d-md-block">Your post will be deleted everywhere on {{SITE_TITLE}}.</p>
<p class="text-muted d-md-none">Your post will be deleted everywhere on {{SITE_TITLE}}.</p>
<button id="deletePostButton" class="btn btn-danger btn-block mt-5" data-bs-dismiss="modal">Delete post</button>
<button class="btn btn-secondary btn-block" data-bs-dismiss="modal">Cancel</button>
</div>
</div>

View file

@ -461,6 +461,6 @@ line breaks
<h5>Comment Commands</h5>
{% include "expanded_image_modal.html" %}
{% include "component/modal/expanded_image.html.html" %}
{% endblock %}

View file

@ -553,7 +553,7 @@
</div>
{% if v and v.id==p.author_id %}
{% include "delete_post_modal.html" %}
{% include "component/modal/delete_post.html" %}
{% endif %}
{% if v %}

View file

@ -407,13 +407,13 @@
{% endfor %}
{% if v %}
{% include "delete_post_modal.html" %}
{% include "component/modal/delete_post.html" %}
{% include "report_post_modal.html" %}
{% if v.admin_level > 1 %}
{% include "ban_modal.html" %}
{% endif %}
{% endif %}
{% include "expanded_image_modal.html" %}
{% include "component/modal/expanded_image.html.html" %}
<script src="{{ 'js/clipboard.js' | asset }}"></script>
<script src="{{ 'js/comments+submission_listing.js' | asset }}"></script>