{% load bootstrap_helpers %} {% load community_utils %} {% load django_bootstrap5 %} {% load community_buttons %} {% load sekizai_tags %} {% load static %} {% load chats %} {% load e2ee %} {% if channel.e2e_encrypted and not request.session|e2ee_enabled %} {% endif %} {% block threads %}
{% endblock %} {% addtoblock "js" %} {% if thread_form and user|can_start_thread:channel %} {% endif %} {% endaddtoblock %} {% block thread_form %} {% if thread_form and user|can_start_thread:channel %} {% if not channel.e2e_encrypted or request.session|e2ee_enabled %}
{% if thread_form.topic %} {% bootstrap_field thread_form.topic %} {% endif %} {% bootstrap_form thread_form exclude="topic,body" %}
{% bootstrap_field thread_form.body show_help=False show_label=False %}
{% bootstrap_button '' button_type="submit" extra_classes="me-2 px-4" %}
{% include "chats/components/comment_upload_alert.html" %}
{% endif %} {% endif %} {% endblock %} {% addtoblock "css" %} {% if thread_form %}{{ thread_form.media.css }}{% elif threadcomment_form %}{{ threadcomment_form.media.css }}{% endif %} {% endaddtoblock %} {% addtoblock "js" %} {% if thread_form %}{{ thread_form.media.js }}{% elif threadcomment_form %}{{ threadcomment_form.media.js }}{% endif %} {% endaddtoblock %} {% addtoblock "js" %} {% endaddtoblock %} {% addtoblock "js" %} {% endaddtoblock %} {% addtoblock "js" %} {% endaddtoblock %} {% addtoblock "js" %} {% endaddtoblock %} {% addtoblock "js" %} {% endaddtoblock %}