Fix to 4a61a4c: add hids for dataset inputs

This commit is contained in:
carlfeberhard
2016-05-25 15:12:02 -04:00
parent f0a1bc8cbd
commit 939a107f37
+15 -14
View File
@@ -65,20 +65,21 @@
${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 = element
encoded_id = trans.security.encode_id( hda.id )
show_params_url = h.url_for( controller='dataset', action='show_params', dataset_id=encoded_id )
%>
<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
%if i > 0:
,
%endif
%if element.history_content_type == "dataset":
<%
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 )
%>
<a class="input-dataset-show-params" data-hda-id="${encoded_id}"
href="${show_params_url}">${hda.hid}: ${hda.name | h}</a>
%else:
${element.hid}: ${element.name | h}
%endif
%endfor
</td>
<td></td>