<%inherit file="/base.mako"/> <%namespace file="/root/history_common.mako" import="render_dataset" /> <%def name="stylesheets()"> ${parent.stylesheets()} ${h.css( "history" )} <%def name="javascripts()"> ${parent.javascripts()} <%def name="render_item( entity, children )"> <% entity_name = entity.__class__.__name__ if entity_name == "HistoryDatasetAssociation": render_item_hda( entity, children ) elif entity_name == "Job": render_item_job( entity, children ) elif entity_name == "WorkflowInvocation": render_item_wf( entity, children ) %> <%def name="render_item_hda( hda, children )"> ${render_dataset( hda, hda.hid )} <%def name="render_item_job( job, children )">
<% if job.tool_id in trans.app.toolbox.tools_by_id: tool_name = trans.app.toolbox.tools_by_id[job.tool_id].name else: tool_name = "Unknown tool with id '%s'" % job.tool_id %>
Tool: ${tool_name}
%for e, c in reversed( children ): ${render_item( e, c )} %endfor
<%def name="render_item_wf( wf, children )">
Workflow: ${wf.workflow.name}
%for e, c in reversed( children ): ${render_item( e, c )} %endfor
%for entity, children in items: ${render_item( entity, children )} %endfor