From bd868be6eb9aff76f5e0ebec801d2525d7e1b055 Mon Sep 17 00:00:00 2001 From: abretaud Date: Thu, 25 Jun 2015 12:44:12 +0200 Subject: [PATCH 1/2] fix error when displaying job params for tools containing a section --- templates/show_params.mako | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/templates/show_params.mako b/templates/show_params.mako index 9cf92a31681..a8b102c3842 100644 --- a/templates/show_params.mako +++ b/templates/show_params.mako @@ -22,6 +22,13 @@ %for i in range( len(param_values[input.name]) ): ${ inputs_recursive(input.inputs, param_values[input.name][i], depth=depth+1) } %endfor + %elif input.type == "section": + + ## + ${inputs_recursive_indent( text=input.name, depth=depth )} + + + ${ inputs_recursive( input.inputs, param_values[input.name], depth=depth+1, upgrade_messages=upgrade_messages.get( input.name ) ) } %elif input.type == "conditional": <% try: From 64e82bbd7b1a6fcc66082d696c25a025732eb18c Mon Sep 17 00:00:00 2001 From: abretaud Date: Mon, 6 Jul 2015 11:33:23 +0200 Subject: [PATCH 2/2] fix indentation --- templates/show_params.mako | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/show_params.mako b/templates/show_params.mako index a8b102c3842..149b7f6eb74 100644 --- a/templates/show_params.mako +++ b/templates/show_params.mako @@ -22,8 +22,8 @@ %for i in range( len(param_values[input.name]) ): ${ inputs_recursive(input.inputs, param_values[input.name][i], depth=depth+1) } %endfor - %elif input.type == "section": - + %elif input.type == "section": + ## ${inputs_recursive_indent( text=input.name, depth=depth )}