render serie via a separate block

This commit is contained in:
Florian Klink 2019-11-27 11:38:54 +01:00
parent 1b249600e5
commit 151cc75532
3 changed files with 17 additions and 10 deletions

11
public/serie.tmpl.html Normal file
View file

@ -0,0 +1,11 @@
{{ define "serie" }}
<tr>
<td colspan="3" class="{{ if not (. | isAutoSubmittable) }}table-primary{{ else }}table-success{{ end }}">Serie with {{ len .ChangeSets }} changes</td>
</tr>
{{ range $changeset := .ChangeSets }}
{{ block "changeset" $changeset }}{{ end }}
{{ end }}
<tr>
<td colspan="3">&nbsp;</td>
</tr>
{{ end }}