X-Git-Url: https://plomlompom.com/repos/?p=misc;a=blobdiff_plain;f=todo_templates%2Fdo_todos.html;fp=todo_templates%2Fdo_todos.html;h=25211f0f0c0fbbde07334657b6f567f843f7e876;hp=fd6feb2ec392aebc199a6bd4da0800f864331a01;hb=59056f396c4761f9cd7ffbc569e3ddf8994d5e83;hpb=38b9ce0ba2b5af072554999bc5836ffe455f06db diff --git a/todo_templates/do_todos.html b/todo_templates/do_todos.html index fd6feb2..25211f0 100644 --- a/todo_templates/do_todos.html +++ b/todo_templates/do_todos.html @@ -5,6 +5,22 @@ td.number, td.checkbox { text-align: center; } td { vertical-align: middle; } td button { padding: 0em; } th.centered { text-align: center; } +ul { margin: 0; } +details > summary { + list-style-type: none; +} +details > summary.has_dependers { + list-style-type: '▶'; +} +details[open] > summary.has_dependers { + list-style-type: '▼'; +} +details > summary.has_deps::after { + content: '▶'; +} +details[open] > summary.has_deps::after { + content: '▼'; +} {% endblock %} {% block content %} @@ -22,6 +38,39 @@ comment:

+

+task quick-add: +don't adopt, make new: +

+ +{% for task in all_tasks %} + +{% endfor %} + + +{% if adoptable_past_todos %} +

+

+ +there are adoptable/unfinished past todos ({{adoptable_past_todos|count}}) + + + + + + + + + + +{% endfor %} +
adopt?datetitlecomment
{{todo.earliest_date}}{{todo.title|e}}{{todo.comment|e}}
+
+

+{% endif %} +
@@ -43,7 +92,7 @@ comment:
- + @@ -52,7 +101,31 @@ comment: -{% if todo.parents|length > 0 %}…:{% endif %}{{todo.title}} +{% if todo.dependers|length > 0 or todo.deps|length > 0 %} +
+ +{% endif %} +{{todo.title|e}} +{% if todo.dependers|length > 0 or todo.deps|length > 0 %} + +{% if todo.dependers|length > 0 %} +dependers: +
    +{% for path in todo.depender_paths %} +
  • {% for depender_todo in path %}{{ depender_todo.title|e }} ▶ {% endfor %}… +{% endfor %} +
+{% endif %} +{% if todo.deps|length > 0 %} +depends on: +
    +{% for dep_todo in todo.deps %} +
  • [{% if dep_todo.done %}✓{% else %} {% endif %}] {{ dep_todo.title|e }}{% if dep_todo.deps|length > 0 %} ▶{% endif %} +{% endfor %} +
+{% endif %} +
+{% endif %}