mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Make workflow editor toolTitle link include the tools description
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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user