X-Git-Url: https://plomlompom.com/repos/bar%20baz.html?a=blobdiff_plain;f=templates%2Fday.html;h=ce16f28179588d367680dd80c2123459f4942251;hb=9e297373770305a915dbe987bf6fda02db704ec6;hp=cd683da0d1f02fc70dd4a07044ac9b82073dbd69;hpb=206a9111fdc95fcb24ae4793a7536e1facf82b71;p=plomtask diff --git a/templates/day.html b/templates/day.html index cd683da..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 %} @@ -50,7 +51,7 @@ td.todo_line { {% if condition in node.todo.enables %}+{% elif condition in node.todo.disables %}!{% endif %} {% endfor %} - + {% endif %} @@ -71,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 %}) @@ -82,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 %} @@ -103,14 +104,9 @@ td.todo_line { prev | next

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

todo

@@ -148,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 %} @@ -184,5 +176,6 @@ add todo:
-{% endblock %} +{{ macros.datalist_of_titles("processes", processes) }} +{% endblock %}