home · contact · privacy
Hide already-seen descendants of implicit ProcessSteps.
[plomtask] / templates / process.html
index 0a15cc4052a8d61bf1b2d624a90cfbfc7d86a9e8..1dcfff627c99f0f17218392ac86aee7f0b607502 100644 (file)
 {% endif %}
 </td>
 <td>{% for i in range(indent) %}+{%endfor %}
+{% if (not step_node.is_explicit) and step_node.seen %}
+<a href="process?id={{step_node.process.id_}}">({{step_node.process.title.newest|e}})</a>
+{% else %}
 <a href="process?id={{step_node.process.id_}}">{{step_node.process.title.newest|e}}</a>
+{% endif %}
 </td>
 <td>
 {% if step_node.is_explicit %}
@@ -19,9 +23,11 @@ add step: <input name="new_step_to_{{step_id}}" list="candidates" autocomplete="
 {% endif %}
 </td>
 </tr>
+{% if step_node.is_explicit or not step_node.seen %}
 {% for substep_id, substep in step_node.steps.items() %}
 {{ process_with_steps(substep_id, substep, indent+1) }}
 {% endfor %}
+{% endif %}
 {% endmacro %}
 
 {% block content %}