{% for task in doc.tasks %}
{% if task.todo %} {% else %} {% endif %}
{% if task.status != "Closed" %} {% endif %}
{% endfor %}