diff --git a/templates/webapps/galaxy/workflow/display.mako b/templates/webapps/galaxy/workflow/display.mako index 12fd2ce4763..1bd5fac5e50 100644 --- a/templates/webapps/galaxy/workflow/display.mako +++ b/templates/webapps/galaxy/workflow/display.mako @@ -15,12 +15,12 @@ %for input_index, input in enumerate( inputs.values() ): %if input.type == "repeat":
| Step | Annotation |
|---|---|
|
+ %if step.type == 'tool' or step.type is None:
+ <%
+ tool = trans.app.toolbox.get_tool( step.tool_id )
+ %>
+
+ %if tool:
+
+ %elif step.type == 'subworkflow':
+ Step ${int(step.order_index)+1}: ${tool.name | h}
+
+ ${do_inputs( tool.inputs, step.state.inputs, "", step )}
+
+ %else:
+ Step ${int(step.order_index)+1}: Unknown Tool with id '${step.tool_id | h}'
+ %endif
+
+
+ %else:
+ ## TODO: always input dataset?
+ <% module = step.module %>
+ Step ${int(step.order_index)+1}: ${step.label or (step.subworkflow.name if step.subworkflow else "Missing workflow") | h}
+ <% errors = step.module.get_errors() %>
+ %if errors:
+
+ Error in Subworkflow:
+
+ %else:
+
+
+ %endif
+
+
%endif
- Step ${int(step.order_index)+1}: ${module.name | h}
+
+ ${do_inputs( module.get_runtime_inputs(), step.state.inputs, "", step )}
+
+
- ${do_inputs( tool.inputs, step.state.inputs, "", step )}
-
- %else:
- Step ${int(step.order_index)+1}: Unknown Tool with id '${step.tool_id | h}'- %if hasattr( step, "annotation") and step.annotation is not None: -${step.annotation}
- %endif
- %endif
- %elif step.type == 'subworkflow':
- Step ${int(step.order_index)+1}: ${step.label or (step.subworkflow.name if step.subworkflow else "Missing workflow") | h}- %if hasattr( step, "annotation") and step.annotation is not None: -${step.annotation}
- %endif
- <% errors = step.module.get_errors() %>
- %if errors:
-
- Error in Subworkflow:
-
- %else:
-
-
- %endif
- %else:
- ## TODO: always input dataset?
- <% module = step.module %>
- Step ${int(step.order_index)+1}: ${module.name | h}- %if hasattr( step, "annotation") and step.annotation is not None: -${step.annotation}
- %endif
-
- ${do_inputs( module.get_runtime_inputs(), step.state.inputs, "", step )}
-
- %endif
- - %endfor + |
+ + %if hasattr( step, "annotation") and step.annotation is not None: + ${step.annotation} + %endif + | +