{% for comment in comments %} {% if forloop.first and user.is_authenticated %} {% include './inserter.html' %} {% endif %} {% include './card.html' with comment=comment %} {% empty %} {% if user.is_authenticated %} {% include './inserter.html' %} {% else %}

User must be logged into comment.

{% endif %} {% endfor %}