{% load sekizai_tags %} {% load community_utils %} {% load community_buttons %} {% load static %} {% load chats %}
{% if user|can_post_comment:channel %}
{% endif %} {% clipboard_button root_url|str_add:comment.parent_channel.get_absolute_url|str_add:'?comment='|str_add:comment.md5 button_icon="permalink" button_class="ms-2 text-decoration-none text-muted" %} {% clipboard_html_button clipboard_wrapper_id="copy-comment-"|add:comment.md5|add:"-wrapper" button_class="ms-2 text-muted" button_title="Copy the this comment into clipboard" %} {{ comment.body }} {% endclipboard_html_button %} {% clipboard_html_button clipboard_button_text=comment.md5_short clipboard_wrapper_id="copy-md5-"|add:comment.md5|add:"-wrapper" button_class="ms-2 text-muted" button_title="Copy a reference to this comment into clipboard that you can use in a reply" %} {% mention_badge comment.commentmentionlink %} {% endclipboard_html_button %} {% clipboard_html_button button_icon="quote" clipboard_wrapper_id="copy-quote-"|add:comment.md5|add:"-wrapper" button_class="text-muted" button_title="Quote this comment" %} {% comment_quote comment %} {% endclipboard_html_button %} {% url_for_next as url_for_next %} {% if comment.comment_type != "channel" %} {% if threadcomment_form %} {% elif comment.comment_type == "threadcomment" and user|can_post_comment:channel %} {% endif %} {% endif %} {% if comment.pk %} {% edit_button comment None button_class="btn-link text-decoration-none text-muted btn-round ms-2" %} {% else %} {% with button_id=comment|object_id %} {% include "academic_community/components/buttons/edit.html" with show_button=True object_name="Comment" edit_url=comment.get_edit_url|str_add:"?next="|str_add:url_for_next button_class="btn-link text-decoration-none text-muted btn-round ms-2" button_id="edit-button-"|add:button_id %} {% endwith %} {% endif %} {% if comment.pk %} {% delete_button comment None button_class="btn-link text-decoration-none text-muted btn-round ms-2" %} {% else %} {% with button_id=comment|object_id %} {% include "academic_community/components/buttons/delete.html" with show_button=True object_name="Comment" delete_url=comment.get_delete_url|str_add:"?next="|str_add:url_for_next button_class="btn-link text-decoration-none text-muted btn-round ms-2" button_id="delete-button-"|add:button_id %} {% endwith %} {% endif %}
{% addtoblock "js" %} {% endaddtoblock %} {% addtoblock "js" %} {% endaddtoblock %}