X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/move_up?a=blobdiff_plain;f=todo_templates%2Ftask.html;h=8aef69670346204a087885ebe2ae3b3def1bd1f9;hb=9637ae6c570e9cf0cce500d85af03c74d6771362;hp=7a8f981fef608cbad413a66b866ad452cbbfdc88;hpb=979de59ced9fe3fd3860d19288b42485d7f02346;p=misc diff --git a/todo_templates/task.html b/todo_templates/task.html index 7a8f981..8aef696 100644 --- a/todo_templates/task.html +++ b/todo_templates/task.html @@ -1,18 +1,52 @@ {% extends 'base.html' %} + + {% block css %} -th { padding-right: 1em; } +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 %}

edit task

-
- - + + - + + + + +{% if task.forks_id %} + + + + + +{% endif %} + + - + - + - + - - + + + + + + + -{% for subtask in filtered_tasks %} - + + + +{{ macros.datalist_tasks(filtered_tasks) }} +{% if task.deps %} + + + +{% endif %}
add as todo to +
forks{{ task.forked_task.title.now|e }}
title @@ -27,19 +61,16 @@ th { padding-right: 1em; }
comment - +
default effort -{% if task.subtasks %} -{{ task.default_effort.now }} -{% else %}
history @@ -49,19 +80,13 @@ th { padding-right: 1em; } {% endfor %}
-{% endif %}
tags -{% for tag in tags | sort %} - {{ tag }} -
-{% endfor %} -add: -
+add: {{ macros.tagselection(submit_name='tag', selected_tags=task.tags.now, all_tags=tags) }}
history
    @@ -73,52 +98,86 @@ add:
children
fence adoptions
dependers +{% if task.dependers %} - -{% for subtask in task.subtasks %} - +{% for depender in task.dependers %} + {% endfor %} - - - +
- + -{{subtask.title.now}} +{{ draw_task(depender)}}
---
+{% endif %} +add: +
children - +{% if task.deps %} + +{% for dep in task.deps %} + + {% endfor %} +
+ -{{subtask.title.now}} +{% if dep.deps %} +
+ +{% endif %} +{{ draw_task(dep)}} +{% if dep.deps %} + +{% for s in dep.deps %} +{{ task_with_deps(s, 1) }} +{% endfor %} +
+{% endif %}
+{% endif %} +add: +
as chain + +{% for dep in task.deps_chain %} + + + + +{% endfor %}
{{dep.deps_depth}}{{dep.title.now}}
- -
-{% include 'tagfilters.html' %} -
-search: - + +
+ + +
- -{% include 'watch_form.html' %} - {% endblock %}