Merge pull request #2862 from dannon/fix_lineage_onclick

Open tool executions in a different tab from admin/tool_lineage, inst…
This commit is contained in:
John Chilton
2016-08-30 11:53:41 -04:00
committed by GitHub
2 changed files with 8 additions and 3 deletions
+5
View File
@@ -397,6 +397,11 @@ class AbstractToolBox( Dictifiable, ManagesIntegratedToolPanelMixin, object ):
return self._tool_versions_by_id[ tool_id ][ tool_version ]
# tool_id exactly matches an available tool by id (which is 'old' tool_id or guid)
return self._tools_by_id[ tool_id ]
elif exact:
# We're looking for an exact match, so we skip lineage and
# versionless mapping, though we may want to check duplicate
# toolsheds
continue
# exact tool id match not found, or all versions requested, search for other options, e.g. migrated tools or different versions
rval = []
tool_lineage = self._lineage_map.get( tool_id )
@@ -445,7 +445,7 @@ class ToolVersionListGrid( grids.Grid ):
toolbox = trans.app.toolbox
if toolbox.has_tool( tool_version.tool_id, exact=True ):
link = url_for( controller='tool_runner', tool_id=tool_version.tool_id )
link_str = '<a href="%s">' % link
link_str = '<a target="_blank" href="%s">' % link
return '<div class="count-box state-color-ok">%s%s</a></div>' % ( link_str, tool_version.tool_id )
return tool_version.tool_id
@@ -455,8 +455,8 @@ class ToolVersionListGrid( grids.Grid ):
toolbox = trans.app.toolbox
for tool_id in tool_version.get_version_ids( trans.app ):
if toolbox.has_tool( tool_id, exact=True ):
link = url_for( controller='tool_runner', tool_id=tool_version.tool_id )
link_str = '<a href="%s">' % link
link = url_for( controller='tool_runner', tool_id=tool_id )
link_str = '<a target="_blank" href="%s">' % link
tool_ids_str += '<div class="count-box state-color-ok">%s%s</a></div><br/>' % ( link_str, tool_id )
else:
tool_ids_str += '%s<br/>' % tool_id