X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/task?a=blobdiff_plain;f=templates%2Fday.html;h=2e1a380502f2e10e934b7d4f5eab86254ebd8c8d;hb=d916781d66c1aaf4e3a04580153dce61744d5729;hp=f13eb5c309750d01a7f366c2a85255ccb44d4bd9;hpb=bdb37bdbfdc46a64631c0fb97d0d86540076165e;p=plomtask
diff --git a/templates/day.html b/templates/day.html
index f13eb5c..2e1a380 100644
--- a/templates/day.html
+++ b/templates/day.html
@@ -1,4 +1,5 @@
-{% extends 'base.html' %}
+{% extends '_base.html' %}
+{% import '_macros.html' as macros %}
@@ -32,16 +33,25 @@ td.todo_line {
{% macro show_node_undone(node, indent) %}
{% if not node.todo.is_done %}
+{% if not node.seen %}
+
+{% endif %}
{% for condition in conditions_present %}
-{% if condition in node.todo.conditions %}{% if not condition.is_active %}O{% endif %}{% endif %} |
+{% if condition in node.todo.conditions and not condition.is_active %}O{% elif condition in node.todo.blockers and condition.is_active %}!{% endif %} |
{% endfor %}
-> |
- |
+{% if node.seen %}
+ |
+{% if node.todo.effort %}{{ node.todo.effort }}{% endif %} |
+{% else %}
+ |
+ |
+{% endif %}
{% for i in range(indent) %} {% endfor %} +
-{% if node.seen %}({% endif %}{{node.todo.process.title.newest|e}}{% if node.seen %}){% endif %}
+{% if node.seen %}({% endif %}{{node.todo.title_then|e}}{% if node.seen %}){% endif %}
|
-> |
@@ -49,7 +59,13 @@ td.todo_line {
{% if condition in node.todo.enables %}+{% elif condition in node.todo.disables %}!{% endif %} |
{% endfor %}
- |
+
+{% if node.seen %}
+{{node.todo.comment|e}}
+{% else %}
+
+{% endif %}
+ |
{% endif %}
@@ -70,7 +86,7 @@ td.todo_line {
{% if path|length > 0 and not path[-1].todo.is_done %}
-({% for path_node in path %}{{path_node.todo.process.title.newest|e}} <- {% endfor %})
+({% for path_node in path %}{{path_node.todo.title_then|e}} <- {% endfor %})
|
@@ -81,7 +97,7 @@ td.todo_line {
{% for i in range(indent) %} {% endfor %} +
{% endif %}
-{% if node.seen %}({% endif %}{{node.todo.process.title.newest|e}}{% if node.seen %}){% endif %}
+{% if node.seen %}({% endif %}{{node.todo.title_then|e}} {% if node.todo.comment|length > 0 %}[{{node.todo.comment|e}}]{% endif %}{% if node.seen %}){% endif %}
|
@@ -102,14 +118,9 @@ td.todo_line {
prev | next
-{% endblock %}
+{{ macros.datalist_of_titles("processes", processes) }}
+{% endblock %}