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.css?a=blobdiff_plain;f=templates%2Fday.html;h=ac0a64a704cce415cfdc4977597b9de21b2c5dc4;hb=b0758d1c63db38867ef12ee89317524a7436129d;hp=a0823f33e16fb218d3212756fb3fe11bb9c8cfb3;hpb=f8118b1ed8615870b490566cf649d191f5877932;p=plomtask
diff --git a/templates/day.html b/templates/day.html
index a0823f3..ac0a64a 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:
-
todo
@@ -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 %}
@@ -184,5 +177,6 @@ add todo:
-{% endblock %}
+{{ macros.datalist_of_titles("processes", processes) }}
+{% endblock %}