{% macro show_node_done(node, indent, path) %}
{% if node.todo.has_doneness_in_path %}
<tr{% if not node.todo.is_done %} class="hidden_undone"{% endif %}>
{% macro show_node_done(node, indent, path) %}
{% if node.todo.has_doneness_in_path %}
<tr{% if not node.todo.is_done %} class="hidden_undone"{% endif %}>
<td>
{% for i in range(indent) %} {% endfor %} +
{% if not node.todo.is_done %}({% endif %}<a href="todo?id={{node.todo.id_}}">{{node.todo.title_then|e}}</a>{% if not node.todo.is_done %}){% endif %}
</td>
<td>{{node.todo.comment|e}}</td>
</tr>
<td>
{% for i in range(indent) %} {% endfor %} +
{% if not node.todo.is_done %}({% endif %}<a href="todo?id={{node.todo.id_}}">{{node.todo.title_then|e}}</a>{% if not node.todo.is_done %}){% endif %}
</td>
<td>{{node.todo.comment|e}}</td>
</tr>
{% if not node.seen %}
{% for child in node.children %}
{{ show_node_done(child, indent+1) }}
{% if not node.seen %}
{% for child in node.children %}
{{ show_node_done(child, indent+1) }}