X-Git-Url: https://plomlompom.com/repos//%22https:/validator.w3.org/check?a=blobdiff_plain;f=templates%2Fprocess.html;h=0f0f0c5a49e5bef9db9b9eb558f7d416afedd4fa;hb=b96a5c72c2decc56ca1706e4929e2e58e4b7b156;hp=f2ef5aa95e12cd78b901afe73ba3fd88c050d8e5;hpb=8bbb9ac156bdca7b9dd015b62db3f07f1e7a9e17;p=plomtask diff --git a/templates/process.html b/templates/process.html index f2ef5aa..0f0f0c5 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 %} +{{ process_with_children(child, indent+1) }} +{% endfor %} +{% endmacro %} + {% block content %}

Process

@@ -8,14 +23,7 @@ description: {% for child in children %} - - - - +{{ process_with_children(child, 0) }} {% endfor %}
- - -{{child.title.newest|e}} -
add child: