{% if user.is_authenticated %}
{% csrf_token %}
{% else %} Login to leave a comment.
{% endif %} {% for comment in comments %} {% if comment == "in" %}
{% endif %} {% if comment != "in" and comment != "out" %}
{{comment.body}}
{% endif %} {% if comment == "out" %}
{% endif %} {% endfor %}