{% extends "structure/_base.html" %} {%- block content %}
{% set item_page = True %} {%- if item.kind == 'post' %} {% include "item/_post.html" %} {% elif item.kind == 'page' %} {% include "item/_page.html" %} {% elif item.kind == 'comment' %} {% include "item/_comment.html" %} {% endif -%}
{%- if current_user.is_authenticated() %} {% include "item/_comment_form.html" %} {% else %}

Login or register to comment.

{% endif -%}
{%- set item_page = False -%} {%- if not edit %} {%- for comment, depth in item.get_children() -%} {% set depth = depth - 1 %} {%- if depth > 8 %} {% set depth = 8 %} {% endif -%}
{%- include "item/_comment.html" %}
{%- endfor %} {% endif -%} {% endblock -%}