X-Git-Url: https://plomlompom.com/repos/bar%20baz.html?a=blobdiff_plain;f=templates%2Fday.html;h=4c77705b514b6aec0821b336fea107fcaea3cd1f;hb=6f44fcfab7927af1800107f9a2ad3ba05e0651f9;hp=b816f35c3ddbc5057ccf3f2fe28f20ba7045db6d;hpb=e06d3b744f88b2976399b0cbe08b526bb7e88907;p=plomtask diff --git a/templates/day.html b/templates/day.html index b816f35..4c77705 100644 --- a/templates/day.html +++ b/templates/day.html @@ -1,4 +1,5 @@ -{% extends 'base.html' %} +{% extends '_base.html' %} +{% import '_macros.html' as macros %} @@ -40,6 +41,7 @@ td.todo_line { -> + {% for i in range(indent) %}  {% endfor %} + {% if node.seen %}({% endif %}{{node.todo.process.title.newest|e}}{% if node.seen %}){% endif %} @@ -106,11 +108,6 @@ td.todo_line { comment:
add todo: - -{% for process in processes %} - -{% endfor %} -

todo

@@ -118,7 +115,7 @@ add todo: c -states +states t add enabler @@ -139,7 +136,7 @@ add todo: {% endfor %} [{% if condition.is_active %}X{% else %} {% endif %}] -{{condition.title.newest|e}} +{{condition.title.newest|e}} {% for _ in conditions_present %} {% if outer_loop.index0 + loop.index0 < conditions_present|length %} @@ -148,13 +145,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_titles(list_name, enablers_for[condition.id_]) }} {% endfor %} @@ -163,7 +156,7 @@ add todo: {% for condition in conditions_present %} {% endfor %} -doables +doables {% for condition in conditions_present %} {% endfor %} @@ -184,5 +177,6 @@ add todo: -{% endblock %} +{{ macros.datalist_of_titles("processes", processes) }} +{% endblock %}