{% load static %}

Comments ({{ all_comment | length }})

{% if user.is_authenticated %}
{% csrf_token %}
{% else %}
To comment, please sign in.
{% endif %}
{% for comment in all_comment %} {% if comment.parent is None %}

{% if comment.author_fk.user_avatar %} {{ comment.author }} profile {% else %} User profile {% endif %} {{ comment.author }}

{% if user.username == comment.author %} {% endif %}

{{ comment.text | safe }}

{% endif %} {% empty %} {% endfor %}