diff --git a/templates/webapps/galaxy/workflow/editor.mako b/templates/webapps/galaxy/workflow/editor.mako index 364bd9ad8e9..5fdb9bb592f 100644 --- a/templates/webapps/galaxy/workflow/editor.mako +++ b/templates/webapps/galaxy/workflow/editor.mako @@ -291,6 +291,8 @@ <%def name="left_panel()"> + <% from galaxy.tools import Tool, ToolSection, ToolSectionLabel %> +
${n_('Tools')} @@ -306,9 +308,9 @@
%for key, val in app.toolbox.tool_panel.items():
- %if key.startswith( 'tool' ): + %if isinstance( val, Tool ): ${render_tool( val, False )} - %elif key.startswith( 'section' ) and val.elems: + %elif isinstance( val, ToolSection ) and val.elems: <% section = val %>
${section.name} @@ -316,15 +318,15 @@
%for section_key, section_val in section.elems.items(): - %if section_key.startswith( 'tool' ): + %if isinstance( section_val, Tool ): ${render_tool( section_val, True )} - %elif section_key.startswith( 'label' ): + %elif isinstance( section_val, ToolSectionLabel ): ${render_label( section_val )} %endif %endfor
- %elif key.startswith( 'label' ): + %elif isinstance( val, ToolSectionLabel ): ${render_label( val )} %endif