X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/task?a=blobdiff_plain;ds=inline;f=todo_templates%2Ftask.html;h=3128d75c6ff1a6cfb7fdca5bfb531d31098fea60;hb=ecee822bebf62049803b90fc8d8a0b484915a0fc;hp=b0ed3e8b115f9f195ef1eb1fb5fff7e3e8c7f553;hpb=fde1097e391b9ec0c261f1e91bd203232b3fbcb3;p=misc
diff --git a/todo_templates/task.html b/todo_templates/task.html
index b0ed3e8..3128d75 100644
--- a/todo_templates/task.html
+++ b/todo_templates/task.html
@@ -1,48 +1,178 @@
{% extends 'base.html' %}
+
+
+
{% block css %}
-th, td { vertical-align: top; text-align: left}
-td.input { width: 100%; }
-td.checkbox { width: 0.1em; height: 0.1em; padding: 0em; text-align: center; }
-input[type="number"] { text-align: right; }
-input[type="text"] { width: 100% }
-textarea { width: 100% };
+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 %}
-