{% if logged_in_user %}
Reply
{% endif %} {% set level = level + 1 %} {% if level <= max_post_nesting %} {% if post.children %} {% for post in Post.query.filter_by(parent=post).order_by(Post.date) %}
{% include "post.html" %}
{% endfor %} {% endif %} {% elif post.children %}
Comments hidden; click to go deeper.
{% endif %}