X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/decks/%7B%7Bdeck_id%7D%7D/cards/%7B%7Bcard_id%7D%7D/static/gitweb.js?a=blobdiff_plain;ds=sidebyside;f=templates%2Fday.html;h=e3fe5ef29c5865551d42d751a5d45ea380921065;hb=2c3365447f36c26f2f55cc2a1b42a1e3ad0a8db9;hp=637e08d94ad2e72da8fbcbd009b0c428131edaee;hpb=12195a1fe2c15334c866036eaa171eb8e92f0408;p=plomtask
diff --git a/templates/day.html b/templates/day.html
index 637e08d..e3fe5ef 100644
--- a/templates/day.html
+++ b/templates/day.html
@@ -1,9 +1,15 @@
{% 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) }}
+{% 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 %}
@@ -22,9 +28,23 @@ add todo:
{% endfor %}
+conditions
+{% for node in condition_listings %}
+[{% if node.condition.is_active %}x{% else %} {% endif %}] {{node.condition.title.newest|e}}
-{% for todo in todos %}
-{{ todo_with_children(todo, 0) }}
+{% 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 %}