home · contact · privacy
Hide already-seen descendants of implicit ProcessSteps.
[plomtask] / templates / process.html
index 55eeb52589fae2c97d1585b64624cb36eefab456..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 %}
 add step: <input name="new_step_to_{{step_id}}" list="candidates" autocomplete="off" />
+{% endif %}
 </td>
 </tr>
-{% if indent < 5 %}
+{% 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 %}