X-Git-Url: https://plomlompom.com/repos/berlin_corona.txt?a=blobdiff_plain;f=templates%2Fday.html;h=637e08d94ad2e72da8fbcbd009b0c428131edaee;hb=a0fc8b9ddabe3af5b2cc0592513ba3e69d5fd9d4;hp=44fd90d17f884050bd90b8231a9041d4dd3571a4;hpb=982d712cbf12acde21ce448e0d1ed28468f1c90e;p=plomtask diff --git a/templates/day.html b/templates/day.html index 44fd90d..637e08d 100644 --- a/templates/day.html +++ b/templates/day.html @@ -1,5 +1,12 @@ {% extends 'base.html' %} +{% macro todo_with_children(todo, indent) %} +
  • {% 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 %} +{% endmacro %} + {% block content %}

    {{day.date}} / {{day.weekday}}

    @@ -17,7 +24,7 @@ add todo:

    {% endblock %}