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:
Sebastian Kapust
2018-05-15 15:51:30 +02:00
parent 6a1057e95f
commit eb7a99edb0
@@ -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