X-Git-Url: https://plomlompom.com/repos/condition_titles?a=blobdiff_plain;f=todo_templates%2Ftask.html;h=8aef69670346204a087885ebe2ae3b3def1bd1f9;hb=HEAD;hp=05a661193eecbc990c90c270439359fdd8aa4a4f;hpb=0c688dfc7b5732676428187a09491c4f5c1028c1;p=misc
diff --git a/todo_templates/task.html b/todo_templates/task.html
index 05a6611..8aef696 100644
--- a/todo_templates/task.html
+++ b/todo_templates/task.html
@@ -1,60 +1,183 @@
{% 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 %}
-