home · contact · privacy
Minor code style improvement re NamedTuple usage.
[plomtask] / templates / day.html
index 8887f9a6609c05c119773d2d7ba68b131622856d..e3fe5ef29c5865551d42d751a5d45ea380921065 100644 (file)
@@ -1,15 +1,5 @@
 {% extends 'base.html' %}
 
-{% macro todo_with_children(todo, indent) %}
-<li>{% for i in range(indent) %}+{% endfor %} [{% if todo.is_done %}x{% else %} {% endif %}] <a href="todo?id={{todo.id_}}">{{todo.process.title.newest|e}}</a>
-{% for child in todo.children %}
-{{ todo_with_children(child, indent+1) }}
-{% endfor %}
-{% for condition in todo.conditions %}
-<li>{% for i in range(indent) %}&nbsp;{% endfor %}&nbsp; &lt;[{% if condition.is_active %}x{% else %} {% endif %}] <a href="condition?id={{condition.id_}}">{{condition.title.newest|e}}</a>
-{% endfor %}
-{% endmacro %}
-
 {% macro node_with_children(node, indent) %}
 <li>{% for i in range(indent) %}+{% endfor %}
 {% if node.is_todo %}
@@ -39,7 +29,7 @@ add todo: <input name="new_todo" list="processes" autocomplete="off" />
 </datalist>
 </form>
 <h4>conditions</h4>
-{% for node in conditions_nodes %}
+{% for node in condition_listings %}
 <li>[{% if node.condition.is_active %}x{% else %} {% endif %}] <a href="condition?id={{node.condition.id_}}">{{node.condition.title.newest|e}}</a>
 <ul>
 {% for enabler in node.enablers %}