diff options
author | Florian Klink <flokli@flokli.de> | 2019-11-27T10·41+0100 |
---|---|---|
committer | Florian Klink <flokli@flokli.de> | 2019-11-27T10·41+0100 |
commit | 69f0963a17facb5eff94fe6e36734cb144ec7dd5 (patch) | |
tree | a6e7bac34ec7bc1f78a388fe8e44715ff1499d67 | |
parent | 151cc755326098a26e1992c04eb7833d642a4a42 (diff) |
render series via a separate block
-rw-r--r-- | frontend/frontend.go | 1 | ||||
-rw-r--r-- | public/series.tmpl.html | 16 | ||||
-rw-r--r-- | public/submit-queue.tmpl.html | 15 |
3 files changed, 18 insertions, 14 deletions
diff --git a/frontend/frontend.go b/frontend/frontend.go index c7596ea326b0..6481d4901421 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 000000000000..3a34f4c4a109 --- /dev/null +++ b/public/series.tmpl.html @@ -0,0 +1,16 @@ +{{ define "series" }} +<table class="table table-sm table-hover" id="region-queue"> +<thead class="thead-light"> + <tr> + <th scope="col">Owner</th> + <th scope="col">Changeset</th> + <th scope="col">Flags</th> + </tr> +</thead> +<tbody> + {{ range $serie := . }} + {{ block "serie" $serie }}{{ end }} + {{ end }} +</tbody> +</table> +{{ end }} \ No newline at end of file diff --git a/public/submit-queue.tmpl.html b/public/submit-queue.tmpl.html index c2eff3146637..6b91f59a010b 100644 --- a/public/submit-queue.tmpl.html +++ b/public/submit-queue.tmpl.html @@ -57,20 +57,7 @@ </tbody> </table> <h2>Current Queue</h2> - <table class="table table-sm table-hover" id="region-queue"> - <thead class="thead-light"> - <tr> - <th scope="col">Owner</th> - <th scope="col">Changeset</th> - <th scope="col">Flags</th> - </tr> - </thead> - <tbody> - {{ range $serie := .series }} - {{ block "serie" $serie }}{{ end }} - {{ end }} - </tbody> - </table> + {{ block "series" .series }}{{ end }} <h2 id="region-log">History</h2> </div> |