X-Git-Url: https://plomlompom.com/repos/bar%20baz.html?a=blobdiff_plain;f=templates%2Fday.html;h=b38d566d67185990316878e2c4d7b0eb0795336b;hb=0ed3bc539d21d5536d0fc635760d88a2231587b9;hp=0fff9e049792f695230947e56afc5be3b4d40060;hpb=abef15c28141490af71a1b8a11882aaabc0d3775;p=plomtask
diff --git a/templates/day.html b/templates/day.html
index 0fff9e0..b38d566 100644
--- a/templates/day.html
+++ b/templates/day.html
@@ -1,10 +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}}
+
+prev | next
+
+conditions
+{% for node in conditions_nodes %}
+[{% if node.condition.is_active %}x{% else %} {% endif %}] {{node.condition.title.newest|e}}
+
+{% for enabler in node.enablers %}
+- < {{enabler.process.title.newest|e}}
+{% endfor %}
+{% for disabler in node.disablers %}
+- ! {{disabler.process.title.newest|e}}
+{% endfor %}
+
+
+{% endfor %}
+todos
+
+{% for node in todo_trees %}
+{{ node_with_children(node, 0) }}
+{% endfor %}
+
{% endblock %}