render series via a separate block
This commit is contained in:
parent
151cc75532
commit
69f0963a17
3 changed files with 18 additions and 14 deletions
|
@ -70,6 +70,7 @@ func MakeFrontend(runner *submitqueue.Runner) http.Handler {
|
||||||
|
|
||||||
tmpl := template.Must(loadTemplate([]string{
|
tmpl := template.Must(loadTemplate([]string{
|
||||||
"submit-queue.tmpl.html",
|
"submit-queue.tmpl.html",
|
||||||
|
"series.tmpl.html",
|
||||||
"serie.tmpl.html",
|
"serie.tmpl.html",
|
||||||
"changeset.tmpl.html",
|
"changeset.tmpl.html",
|
||||||
}, funcMap))
|
}, funcMap))
|
||||||
|
|
16
public/series.tmpl.html
Normal file
16
public/series.tmpl.html
Normal file
|
@ -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 }}
|
|
@ -57,20 +57,7 @@
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<h2>Current Queue</h2>
|
<h2>Current Queue</h2>
|
||||||
<table class="table table-sm table-hover" id="region-queue">
|
{{ block "series" .series }}{{ end }}
|
||||||
<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>
|
|
||||||
|
|
||||||
<h2 id="region-log">History</h2>
|
<h2 id="region-log">History</h2>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue