{% spaceless %} {% load bootstrap_helpers %} {% load community_buttons %} {% load community_utils %} {% load static %} {% load sekizai_tags %} {% load community_badges %} {% load guardian_tags %} {% load django_bootstrap5%} {% load chats %} {% addtoblock "css" %} {% endaddtoblock %}
{% include "chats/components/comment_popover.html" with comment=thread %}
{% if not thread.pk or thread.topic %}

{{ thread.topic }}

{% endif %}
{{ thread.user_profile }} wrote
{% if thread.pk and thread.encryption_key %} {% comment_body '

' %} {% else %} {% comment_body thread.body %} {% endif %}
{% with expanded=thread|is_expanded_for:user|op_or:expand %}
{% if not channel.get_absolute_url|same_url:request.path %} View in channel {% endif %} {% comment_reactions thread %}
{% if user.is_authenticated %}
{% endif %} {% if user|can_change_channel:channel %}
{% endif %}
{% for comment in thread.threadcomment_set.all %} {% threadcomment_card comment %} {% endfor %}
{% if threadcomment_form %}
{% bootstrap_form threadcomment_form exclude="body" %}
{% bootstrap_field threadcomment_form.body show_help=False show_label=False %}
{% bootstrap_button '' id="thread-comment-"|str_add:thread.id|str_add:"-submit" button_type="submit" extra_classes="me-2 px-4" %}
{% endif %}
{% endwith %}
{% endspaceless %} {% addtoblock "js" %} {% endaddtoblock %} {% addtoblock "js" %} {% endaddtoblock %}