{% load text_filters %} {% load comments %}
{% if post.is_commentable or comments|length > 0 %} Комментарии 👇 {% endif %}
{% for comment in comments|without_inline_comments %} {% include "comments/comment.html" %} {% endfor %}
{% if post.is_commentable %} {% if request.user.is_authenticated %} {% include "comments/comment-form.html" %} {% else %}
Войдите, чтобы написать комментарий
{% endif %} {% endif %}