From c61feaa0bd182bb2a62644f444d3744a00c9fe00 Mon Sep 17 00:00:00 2001 From: mpl Date: Mon, 29 Oct 2012 11:10:10 +0100 Subject: [PATCH] wizard: placeholder for gallery field The gallery field of the wizard is awkward and undocumented. This placeholder at least gives a hint to devs (and maybe users) on what is expected in that field. Change-Id: Ie707dbecaf87ec98e267fcf6b987cd3b6a1d13e0 --- pkg/server/wizard.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/server/wizard.go b/pkg/server/wizard.go index 802e6709b..c95560234 100644 --- a/pkg/server/wizard.go +++ b/pkg/server/wizard.go @@ -129,11 +129,12 @@ func sendWizard(rw http.ResponseWriter, req *http.Request, hasChanged bool) { } funcMap := template.FuncMap{ - "printWizard": printWizard, + "printWizard": printWizard, + "inputIsGallery": func(inputName string) bool { return inputName == "gallery" }, } body := `
` - body += `{{range $k,$v := .}}{{printf "%v" $k}}
{{end}}` + body += `{{range $k,$v := .}}{{printf "%v" $k}}
{{end}}` body += `
` if hasChanged {