X-Git-Url: https://plomlompom.com/repos/feed.xml?a=blobdiff_plain;ds=sidebyside;f=templates%2Fday.html;h=efa1c9bb1e78fc5ea455c5a678b4727fb22efdd3;hb=80cd423427e523bde8268428a5a8c4573f54adaa;hp=5547f4534e94742600f0664aaece2b7cdc33afc3;hpb=bf8b491d50379772879f1cc9cbe6846fe50ce63b;p=plomtask diff --git a/templates/day.html b/templates/day.html index 5547f45..efa1c9b 100644 --- a/templates/day.html +++ b/templates/day.html @@ -1,7 +1,88 @@ {% extends 'base.html' %} + +{% macro show_node(node, indent) %} +{% if node.is_todo %} +{% for i in range(indent) %}  {% endfor %} + +{% if node.seen %}({% else %}{% endif %}{{node.item.process.title.newest|e}}{% if node.seen %}){% else %}{% endif %} +{% else %} +{% for i in range(indent) %} {% endfor %} + +{% if node.seen %}({% else %}{% endif %}{{node.item.title.newest|e}}{% if node.seen %}){% else %}{% endif %} +{% endif %} +{% endmacro %} + + +{% macro undone_with_children(node, indent) %} +{% if not node.hide %} + + +{% if node.is_todo %} + +{% endif %} + + +{{ show_node(node, indent) }} + + +{% endif %} +{% for child in node.children %} +{{ undone_with_children(child, indent+1) }} +{% endfor %} +{% endmacro %} + + +{% macro done_with_children(node, indent) %} +{% if not node.hide %} + + +{{ show_node(node, indent) }} + + +{% endif %} +{% for child in node.children %} +{{ done_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

+ +

to do

+ +{% for node in todo_trees %} +{{ undone_with_children(node, indent=0) }} +{% endfor %} +
+

done

+ +{% for node in done_trees %} +{{ done_with_children(node, indent=0) }} +{% endfor %} +
+
{% endblock %}