Skip to content

Commit

Permalink
Make workflow editor toolTitle link include the tools description
Browse files Browse the repository at this point in the history
Include the tools description in the toolTitle link to increase the clickable
area. Style similar to how the toolMenu is handled outside the workflow editor.
  • Loading branch information
scrathat committed May 15, 2018
1 parent 6a1057e commit eb7a99e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/webapps/galaxy/workflow/editor.mako
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@
%if "[[" in tool.description and "]]" in tool.description:
${tool.description.replace( '[[', '<a id="link-${tool.id}" href="workflow_globals.app.add_node_for_tool( ${tool.id} )">' % tool.id ).replace( "]]", "</a>" )}
%elif tool.name:
<a id="link-${tool.id}" href="#" onclick="workflow_globals.app.add_node_for_tool( '${tool.id}', '${markupsafe.escape( tool.name ) | h}' )">${tool.name | h}</a> ${tool.description}
<a id="link-${tool.id}" href="#" onclick="workflow_globals.app.add_node_for_tool( '${tool.id}', '${markupsafe.escape( tool.name ) | h}' )" style="text-decoration: none; display: block;"><span style="text-decoration: underline">"${tool.name | h}</span> ${tool.description}</a>
%else:
<a id="link-${tool.id}" href="#" onclick="workflow_globals.app.add_node_for_tool( '${tool.id}', '${markupsafe.escape( tool.name ) | h}' )">${tool.description}</a>
%endif
Expand Down

0 comments on commit eb7a99e

Please sign in to comment.