X-Git-Url: https://plomlompom.com/repos/berlin_corona.txt?a=blobdiff_plain;f=templates%2Fday.html;h=637e08d94ad2e72da8fbcbd009b0c428131edaee;hb=a0fc8b9ddabe3af5b2cc0592513ba3e69d5fd9d4;hp=5547f4534e94742600f0664aaece2b7cdc33afc3;hpb=bf8b491d50379772879f1cc9cbe6846fe50ce63b;p=plomtask diff --git a/templates/day.html b/templates/day.html index 5547f45..637e08d 100644 --- a/templates/day.html +++ b/templates/day.html @@ -1,7 +1,31 @@ {% 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}}

    -comment: {{day.comment|e}} +

    +prev | next +

    +
    +comment: +
    +add todo: + +{% for process in processes %} + +{% endfor %} + +
    + {% endblock %}