<%inherit file="/base.mako"/> <% _=n_ %> <%def name="title()">Extract workflow from history <%def name="stylesheets()"> ${h.css( 'history', 'base' )} <%def name="javascripts()"> ${parent.javascripts()} <%def name="history_item( data, creator_disabled=False )"> %if data.state in [ "no state", "", None ]: <% data_state = "queued" %> %else: <% data_state = data.state %> %endif
%if data_state != 'ok': %endif
${data.hid}: ${data.display_name()}
%if disabled:
${_('Treat as input dataset')}
%endif

The following list contains each tool that was run to create the datasets in your current history. Please select those that you wish to include in the workflow.

Tools which cannot be run interactively and thus cannot be incorporated into a workflow will be shown in gray.

%for warning in warnings:
${warning}
%endfor

%for job, datasets in jobs.iteritems(): <% cls = "toolForm" tool_name = "Unknown" if hasattr( job, 'is_fake' ) and job.is_fake: cls += " toolFormDisabled" disabled = True else: tool = app.toolbox.tools_by_id.get( job.tool_id, None ) if tool: tool_name = tool.name if tool is None or not( tool.is_workflow_compatible ): cls += " toolFormDisabled" disabled = True else: disabled = False %> %endfor
${_('Tool')} ${_('History items created')}
${tool_name}
%if disabled:
This tool cannot be used in workflows
%else:
Include "${tool_name}" in workflow
%endif
%for _, data in datasets:
${history_item( data, disabled )}
%endfor