X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;f=templates%2Fday.html;h=e3fe5ef29c5865551d42d751a5d45ea380921065;hb=87505e3be37ad7a208c8f77dc7d7631728d87fa4;hp=5547f4534e94742600f0664aaece2b7cdc33afc3;hpb=bf8b491d50379772879f1cc9cbe6846fe50ce63b;p=plomtask diff --git a/templates/day.html b/templates/day.html index 5547f45..e3fe5ef 100644 --- a/templates/day.html +++ b/templates/day.html @@ -1,7 +1,51 @@ {% extends 'base.html' %} +{% 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 %}

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

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

    +prev | next +

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

    conditions

    +{% for node in condition_listings %} +
  • [{% if node.condition.is_active %}x{% else %} {% endif %}] {{node.condition.title.newest|e}} + +
  • +{% endfor %} +

    todos

    + {% endblock %}