{% load i18n %} {% load static %} {% load comment_tags %}
{#COMMENT INFO#}
{% get_profile_image comment.user as profile_image %} {% if profile_image %} Profile {% endif %} {{ comment.user.username }} {% if settings.time_type == 1 and comment.posted|is_time_lt_days:settings.time_days %} {{ comment.posted|timesince }} {% trans 'ago' %} {% elif settings.time_type == 1 and not comment.posted|is_time_lt_days:settings.time_days %} {{ comment.posted|date:'SHORT_DATE_FORMAT' }} {{ comment.posted|time:'TIME_FORMAT' }} {% elif settings.time_type == 2 %} {{ comment.posted|timesince }} {% trans 'ago' %} {% elif settings.time_type == 3 %} {{ comment.posted|date:'SHORT_DATE_FORMAT' }} {{ comment.posted|time:'TIME_FORMAT' }} {% endif %} {% if comment.is_updated %} {% include 'comment/icons/icon_pen.html' with class='inline w-3 h-3 fill-icon-pin-light dark:fill-icon-pin-dark' %} {% endif %} {% if comment.is_pinned %} {% include 'comment/icons/icon_pin.html' with class='inline w-3 h-3 fill-icon-pin-light dark:fill-icon-pin-dark' %} {% endif %}
{#COMMENT OPTIONS#}
{% if request.user.is_authenticated and comment.user == request.user %} {% if comment.is_spoiler or settings.allow_edit or settings.allow_delete %}
{% include 'comment/icons/icon_dots.html' with class='inline w-6 h-6 fill-icon-dots-light dark:fill-icon-dots-dark' %} {% if settings.allow_edit %} {% endif %} {% if settings.allow_delete %} {% endif %} {% if comment.is_spoiler %} {% include 'comment/icons/icon_eye_off.html' with class='hidden w-6 h-6 fill-none fill-icon-spoiler-option-light dark:fill-icon-spoiler-option-dark group-hover:inline' %} {% endif %}
{% endif %} {% elif comment.is_spoiler %} {% endif %}
{#COMMENT SECTION#}
{#COMMENT CONTENT#} {% if settings.allow_edit %}{% endif %}
{#CONTENT#} {% if comment.content|wordcount > settings.content_words_count %}
{{ comment.content|truncatewords:settings.content_words_count }}
{% else %}
{{ comment.content }}
{% endif %}
{#COMMENT REACTION#}
{% if settings.allow_reaction %}
{% csrf_token %}
{% include 'comment/comment/comment_reactions.html' %}
{% endif %}
{#COMMENT REPLY#} {% if settings.allow_reply and comment.is_parent %} {% with count_children=comment.children.filter_accepted.count %} {% endwith %} {% endif %}