move delete dialog and thread script into the content block in thread view

This commit is contained in:
Lera Elvoé 2025-07-01 18:35:16 +03:00
parent 7aab6df74f
commit c4ee9d883e
Signed by: yagich
SSH Key Fingerprint: SHA256:6xjGb6uA7lAVcULa7byPEN//rQ0wPoG+UzYVMfZnbvc

View File

@ -57,7 +57,6 @@
<h1>Respond to "{{ thread.title }}"</h1> <h1>Respond to "{{ thread.title }}"</h1>
{{ babycode_editor_form(ta_name = "post_content")}} {{ babycode_editor_form(ta_name = "post_content")}}
{% endif %} {% endif %}
{% endblock %}
<dialog id="delete-dialog"> <dialog id="delete-dialog">
<div class=delete-dialog-inner> <div class=delete-dialog-inner>
Are you sure you want to delete the highlighted post? Are you sure you want to delete the highlighted post?
@ -69,3 +68,4 @@
</div> </div>
</dialog> </dialog>
<script src="/static/js/thread.js?v=1"></script> <script src="/static/js/thread.js?v=1"></script>
{% endblock %}