{% extends 'django_spire/container/container.html' %}

{% block container_title %}
    Comments
{% endblock %}

{% block container_content %}
    {% with model.active_comments as comment_list %}
        {% if has_comment_permission %}
            {% include 'comment/card/comment_textarea_card.html' %}
        {% endif %}

        {% for comment in comment_list %}
            {% include 'comment/item/comment_item.html' %}
        {% endfor %}

        {% if not comment_list and not has_comment_permission %}
            {% include 'item/no_data_item.html' %}
        {% endif %}
    {% endwith %}
{% endblock %}
