{% for i in range(indent) %}+{% endfor %} [{% if todo.is_done %}x{% else %} {% endif %}] {{todo.process.title.newest|e}}
{% for child in todo.children %}
{{ todo_with_children(child, indent+1) }}
{% endfor %}
{% for condition in todo.conditions %}
{% for i in range(indent) %} {% endfor %} <[{% if condition.is_active %}x{% else %} {% endif %}] {{condition.title.newest|e}}
{% endfor %}
{% endmacro %}
{% macro node_with_children(node, indent) %}
{% for i in range(indent) %}+{% endfor %}
{% if node.is_todo %}
{% if not node.item.is_doable %}{% endif %}[{% if node.item.is_done %}x{% else %} {% endif %}]{% if not node.item.is_doable %}{% endif %}
{% if node.seen %}({% else %}{% endif %}{{node.item.process.title.newest|e}}{% if node.seen %}){% else %}{% endif %}
{% else %}
< {% if node.seen %}({% else %}{% endif %}{{node.item.title.newest|e}}{% if node.seen %}){% else %}{% endif %}
{% endif %}
{% for child in node.children %}
{{ node_with_children(child, indent+1) }}
{% endfor %}
{% endmacro %}
{% block content %}