{% load text_filters %} {% load posts %} {% load comments %}
Аватар {{ comment.author.full_name }}
{{ comment.author.full_name }} {% if comment.author_id in user_notes %} {{ user_notes|lookup:comment.author_id|truncatechars:128 }} {% else %} {{ comment.author.position }} {% endif %} {% if comment.author.hat %}{% include "users/widgets/hat.html" with hat=comment.author.hat %}{% endif %} {% if comment.author == post.author %}{% include "users/widgets/hat_author.html" %}{% endif %} {% if me and comment.author_id != me.id and not comment.author.deleted_at %} {% endif %} {{ comment.created_at | cool_date }}
{% if comment.metadata.badges %}
{% include "badges/widgets/badges.html" with badges=comment.metadata.badges %}
{% if me and comment.author_id != me.id and not comment.author.deleted_at %} {% endif %} {% endif %}
{% if comment.is_pinned %}
{% endif %}
{% render_comment comment %}
{% if replies %}
{% for reply_tree in replies %} {% include "comments/types/reply.html" with comment=reply_tree.comment reply_to=reply_tree.comment replies=reply_tree.replies %} {% if post.is_commentable and me %} {% include "comments/forms/reply.html" with comment=reply_tree.comment reply_form=reply_form %} {% endif %} {% endfor %}
{% endif %}