X-Git-Url: https://plomlompom.com/repos/do_day?a=blobdiff_plain;ds=sidebyside;f=todo_templates%2Ftask.html;h=8aef69670346204a087885ebe2ae3b3def1bd1f9;hb=9637ae6c570e9cf0cce500d85af03c74d6771362;hp=2666d0da260cb1ea2ba1109adb8403b559678fe5;hpb=38b9ce0ba2b5af072554999bc5836ffe455f06db;p=misc
diff --git a/todo_templates/task.html b/todo_templates/task.html
index 2666d0d..8aef696 100644
--- a/todo_templates/task.html
+++ b/todo_templates/task.html
@@ -1,23 +1,50 @@
{% extends 'base.html' %}
+
+
{% block css %}
tr.toplevel th { padding-right: 1em; }
tr.toplevel td, tr.toplevel th { padding-top: 1em; }
tr.lowlevel td, tr.lowlevel th { padding-top: 0em; }
{% endblock %}
+
+
+{% macro draw_task(task) %}
+{{task.title.now}}
+{% endmacro %}
+
+
+
+{% macro task_with_deps(task, indent) %}
+{% for i in range(indent) %} {% if loop.last %}+{% endif %}{% endfor %}
+{{ draw_task(task) }}
+{% for task in task.deps %}
+{{ task_with_deps(task, indent+1) }}
+{% endfor %}
+{% endmacro %}
+
+
+
{% block content %}