X-Git-Url: https://plomlompom.com/repos/bar%20baz.html?a=blobdiff_plain;f=templates%2Fday.html;h=ce16f28179588d367680dd80c2123459f4942251;hb=9e297373770305a915dbe987bf6fda02db704ec6;hp=167b70394963e552ec270a05384ccf47e32259af;hpb=4c0b3ff23b3d9fc526dfaa4803eb167d64c32181;p=plomtask diff --git a/templates/day.html b/templates/day.html index 167b703..ce16f28 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,13 +33,14 @@ td.todo_line { {% macro show_node_undone(node, indent) %} {% if not node.todo.is_done %} + {% for condition in conditions_present %} {% if condition in node.todo.conditions %}{% if not condition.is_active %}O{% endif %}{% endif %} {% endfor %} -> - + {% for i in range(indent) %}  {% endfor %} + {% if node.seen %}({% endif %}{{node.todo.process.title.newest|e}}{% if node.seen %}){% endif %} @@ -49,7 +51,7 @@ td.todo_line { {% if condition in node.todo.enables %}+{% elif condition in node.todo.disables %}!{% endif %} {% endfor %} - + {% endif %} @@ -70,7 +72,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.process.title.newest|e}} <- {% endfor %}) @@ -81,7 +83,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.process.title.newest|e}} {% if node.todo.comment|length > 0 %}[{{node.todo.comment|e}}]{% endif %}{% if node.seen %}){% endif %} @@ -102,14 +104,9 @@ td.todo_line { prev | next

-comment: +comment:
add todo: - -{% for process in processes %} - -{% endfor %} -

todo

@@ -147,13 +144,9 @@ add todo: {% endif %} {% endfor %} - - - -{% for process in enablers_for[condition.id_] %} - -{% endfor %} - +{% set list_name = "todos_for_%s"|format(condition.id_) %} + +{{ macros.datalist_of_direct_titles(list_name, enablers_for[condition.id_]) }} {% endfor %} @@ -183,5 +176,6 @@ add todo:
-{% endblock %} +{{ macros.datalist_of_titles("processes", processes) }} +{% endblock %}