X-Git-Url: https://plomlompom.com/repos/unset_cookie?a=blobdiff_plain;f=templates%2Fday.html;h=a089037a829092c7e1a29cda45775dd170e1f35e;hb=010ef4bfea17be7436a937f28e7b54d3da17a1e1;hp=5547f4534e94742600f0664aaece2b7cdc33afc3;hpb=bf8b491d50379772879f1cc9cbe6846fe50ce63b;p=plomtask
diff --git a/templates/day.html b/templates/day.html
index 5547f45..a089037 100644
--- a/templates/day.html
+++ b/templates/day.html
@@ -1,7 +1,61 @@
{% 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 %}
+{% for condition in todo.conditions %}
+{% for i in range(indent) %} {% endfor %} <[{% if condition.is_active %}x{% else %} {% endif %}] {{condition.title.newest|e}}
+{% endfor %}
+{% endmacro %}
+
+{% 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
+
+
+conditions
+{% for node in conditions_listing %}
+[{% 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 %}