X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=templates%2Fprocess.html;h=f2d5055043da9388f488b37cf4336c6423dd1cab;hb=13845c83a9e3e107aa7c40e86d8a0cda1a317f8a;hp=f2ef5aa95e12cd78b901afe73ba3fd88c050d8e5;hpb=8bbb9ac156bdca7b9dd015b62db3f07f1e7a9e17;p=plomtask diff --git a/templates/process.html b/templates/process.html index f2ef5aa..f2d5055 100644 --- a/templates/process.html +++ b/templates/process.html @@ -1,5 +1,20 @@ {% extends 'base.html' %} +{% macro process_with_children(node, indent) %} + + + + + +{% for i in range(indent) %}+{%endfor %} +{{node.process.title.newest|e}} + + +{% for child in node.children.values() %} +{{ process_with_children(child, indent+1) }} +{% endfor %} +{% endmacro %} + {% block content %}

Process

@@ -7,15 +22,8 @@ title: description: default effort: -{% for child in children %} - - - - +{% for child in children.values() %} +{{ process_with_children(child, 0) }} {% endfor %}
- - -{{child.title.newest|e}} -
add child: