mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-24 11:51:27 -08:00
48 lines
2.3 KiB
HTML
48 lines
2.3 KiB
HTML
{% if theme() and file_exists('app/templates/themes/' + theme() + '/base.html') %}
|
|
{% extends 'themes/' + theme() + '/base.html' %}
|
|
{% else %}
|
|
{% extends "base.html" %}
|
|
{% endif %} %}
|
|
{% from 'bootstrap/form.html' import render_form %}
|
|
|
|
{% block app_content %}
|
|
<script src="/static/js/coolfieldset.js"></script>
|
|
<div class="row">
|
|
<div class="col-12 col-md-8 position-relative add_reply main_pane">
|
|
<fieldset class="coolfieldset mt-4"><legend class="w-auto">Original post</legend>
|
|
<h3>{{ post.title }}</h3>
|
|
{{ post.body_html | safe if post.body_html else '' }}
|
|
</fieldset>
|
|
<fieldset class="coolfieldset mt-4"><legend class="w-auto">Comment you are replying to</legend>
|
|
{{ comment.body_html | safe}}
|
|
</fieldset>
|
|
<div class="position-relative">
|
|
{% if post.community.ap_id and '@beehaw.org' in post.community.ap_id %}
|
|
<p>{{ _('This post is hosted on beehaw.org which has <a href="https://docs.beehaw.org/docs/core-principles/what-is-beehaw/" target="_blank" rel="nofollow">higher standards of behaviour than most places. Be nice</a>.') }}</p>
|
|
{% endif %}
|
|
{{ render_form(form) }}
|
|
{% if not low_bandwidth %}
|
|
{% 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'],
|
|
value: document.getElementById("body").value
|
|
});
|
|
setupAutoResize('body');
|
|
});
|
|
</script>
|
|
{% else %}
|
|
<!-- <a href="#" aria-hidden="true" id="post_reply_markdown_editor_enabler" class="markdown_editor_enabler" data-id="body">{{ _('Enable markdown editor') }}</a> -->
|
|
{% endif %}
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
{% with community = post.community -%}
|
|
{% include "_side_pane.html" %}
|
|
{% endwith -%}
|
|
</div>
|
|
|
|
{% endblock %}
|