mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Modify show_param input walking to account for multiple data parmaeters.
xref https://github.com/galaxyproject/galaxy/pull/1561 fixes https://github.com/galaxyproject/galaxy/issues/1660
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<%inherit file="/base.mako"/>
|
||||
<%namespace file="/message.mako" import="render_msg" />
|
||||
<% from galaxy.util import listify %>
|
||||
<% from galaxy.util import nice_size %>
|
||||
|
||||
<style>
|
||||
@@ -63,13 +64,24 @@
|
||||
%elif input.type == "data":
|
||||
<tr>
|
||||
${inputs_recursive_indent( text=input.label, depth=depth )}
|
||||
<td>
|
||||
%for i, element in enumerate(listify(param_values[input.name])):
|
||||
%if i > 0:
|
||||
,
|
||||
%endif
|
||||
%if element.history_content_type == "dataset":
|
||||
<%
|
||||
hda = param_values[input.name]
|
||||
hda = element
|
||||
encoded_id = trans.security.encode_id( hda.id )
|
||||
show_params_url = h.url_for( controller='dataset', action='show_params', dataset_id=encoded_id )
|
||||
%>
|
||||
<td><a class="input-dataset-show-params" data-hda-id="${encoded_id}"
|
||||
href="${show_params_url}">${hda.name | h}</a></td>
|
||||
<a class="input-dataset-show-params" data-hda-id="${encoded_id}"
|
||||
href="${show_params_url}">${hda.name | h}</a>
|
||||
%else:
|
||||
${element.hid}: ${element.name | h}
|
||||
%endif
|
||||
%endfor
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
%elif input.visible:
|
||||
|
||||
Reference in New Issue
Block a user