2024-02-07 17:31:12 +13:00
{% if theme() and file_exists('app/templates/themes/' + theme() + '/base.html') %}
{% extends 'themes/' + theme() + '/base.html' %}
{% else %}
{% extends "base.html" %}
2024-12-10 12:16:52 +01:00
{% endif %}
2023-12-28 20:00:07 +13:00
{% from 'bootstrap/form.html' import render_form %}
{% block app_content %}
2025-01-04 10:32:00 +13:00
< script src = "/static/js/coolfieldset.js?v=3" > < / script >
2023-12-28 20:00:07 +13:00
< div class = "row" >
< div class = "col-12 col-md-8 position-relative add_reply main_pane" >
2025-01-04 10:32:00 +13:00
< fieldset id = "post_reply_op" class = "coolfieldset {{ 'collapsed' if request.cookies.get('fieldset_post_reply_op_state', 'collapsed') == 'collapsed' }} mt-3" > < legend class = "w-auto" > Original post< / legend >
2023-12-28 20:00:07 +13:00
< h3 > {{ post.title }}< / h3 >
2024-06-05 13:21:41 +12:00
{{ post.body_html|safe if post.body_html }}
2023-12-28 20:00:07 +13:00
< / fieldset >
{% if comment %}
2025-01-04 10:32:00 +13:00
< fieldset id = "post_reply_comment" class = "coolfieldset {{ 'collapsed' if request.cookies.get('fieldset_post_reply_comment_state', 'collapsed') == 'collapsed' }} mt-4 mb-4" > < legend class = "w-auto" > Comment you are replying to< / legend >
2024-06-05 13:21:41 +12:00
{{ comment.body_html|safe }}
2023-12-28 20:00:07 +13:00
< / fieldset >
{% endif %}
< div class = "position-relative" >
{{ render_form(form) }}
{% if markdown_editor %}
< script nonce = "{{ session['nonce'] }}" >
window.addEventListener("load", function () {
var downarea = new DownArea({
elem: document.querySelector('#body'),
resize: DownArea.RESIZE_VERTICAL,
hide: ['heading', 'bold-italic'],
2024-08-16 14:41:39 -04:00
value: document.getElementById("body").value
2023-12-28 20:00:07 +13:00
});
setupAutoResize('body');
});
< / script >
{% endif %}
< / div >
< / div >
2024-07-09 14:24:43 +02:00
{% with community = post.community -%}
{% include "_side_pane.html" %}
{% endwith -%}
2023-12-28 20:00:07 +13:00
< / div >
{% endblock %}