display watches on stream page
This commit is contained in:
parent
91f042e1bb
commit
eb11a50d08
1 changed files with 18 additions and 0 deletions
|
@ -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}}
|
Loading…
Add table
Reference in a new issue