From 939a107f37aabe18bf42265c1469da846bfcaee8 Mon Sep 17 00:00:00 2001 From: carlfeberhard Date: Wed, 25 May 2016 15:12:02 -0400 Subject: [PATCH] Fix to 4a61a4c: add hids for dataset inputs --- templates/show_params.mako | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/templates/show_params.mako b/templates/show_params.mako index 5043652485c..19681d8664f 100644 --- a/templates/show_params.mako +++ b/templates/show_params.mako @@ -65,20 +65,21 @@ ${inputs_recursive_indent( text=input.label, depth=depth )} %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 ) - %> - ${hda.name | h} - %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 ) + %> + ${hda.hid}: ${hda.name | h} + + %else: + ${element.hid}: ${element.name | h} + %endif %endfor