From 69f0963a17facb5eff94fe6e36734cb144ec7dd5 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Wed, 27 Nov 2019 11:41:45 +0100 Subject: [PATCH] render series via a separate block --- frontend/frontend.go | 1 + public/series.tmpl.html | 16 ++++++++++++++++ public/submit-queue.tmpl.html | 15 +-------------- 3 files changed, 18 insertions(+), 14 deletions(-) create mode 100644 public/series.tmpl.html diff --git a/frontend/frontend.go b/frontend/frontend.go index c7596ea32..6481d4901 100644 --- a/frontend/frontend.go +++ b/frontend/frontend.go @@ -70,6 +70,7 @@ func MakeFrontend(runner *submitqueue.Runner) http.Handler { tmpl := template.Must(loadTemplate([]string{ "submit-queue.tmpl.html", + "series.tmpl.html", "serie.tmpl.html", "changeset.tmpl.html", }, funcMap)) diff --git a/public/series.tmpl.html b/public/series.tmpl.html new file mode 100644 index 000000000..3a34f4c4a --- /dev/null +++ b/public/series.tmpl.html @@ -0,0 +1,16 @@ +{{ define "series" }} + + + + + + + + + + {{ range $serie := . }} + {{ block "serie" $serie }}{{ end }} + {{ end }} + +
OwnerChangesetFlags
+{{ end }} \ No newline at end of file diff --git a/public/submit-queue.tmpl.html b/public/submit-queue.tmpl.html index c2eff3146..6b91f59a0 100644 --- a/public/submit-queue.tmpl.html +++ b/public/submit-queue.tmpl.html @@ -57,20 +57,7 @@

Current Queue

- - - - - - - - - - {{ range $serie := .series }} - {{ block "serie" $serie }}{{ end }} - {{ end }} - -
OwnerChangesetFlags
+ {{ block "series" .series }}{{ end }}

History