display watches on stream page

This commit is contained in:
BroodjeAap 2020-07-12 14:07:22 +00:00
parent 91f042e1bb
commit eb11a50d08

View file

@ -7,4 +7,22 @@
<img src="/debug?name={{.Name}}" width="425" height="240">
<img src="/current?name={{.Name}}" width="425" height="240">
</div>
<table class="pure-table pure-table-horizontal pure-table-striped">
<caption>Watches</caption>
<thead>
<tr>
<th>Name</th>
<th>Color</th>
<th>Areas</th>
</tr>
</thead>
{{range $watch := .Watches}}
<tr>
<td>{{ $watch.Name }}</td>
<td>{{ $watch.Color }}</td>
<td>{{ len $watch.Areas }}</td>
</tr>
{{end}}
</table>
{{end}}