28 lines
621 B
HTML
28 lines
621 B
HTML
|
{{ define "content" }}
|
||
|
{{ if (eq (len .HostStatusOverTime) 0) }}
|
||
|
no backups yet!
|
||
|
{{ end }}
|
||
|
|
||
|
{{ range $hostname, $backupList := .HostStatusOverTime }}
|
||
|
<div>{{ $hostname }}</div><br>
|
||
|
<table>
|
||
|
<tr>
|
||
|
{{ range $i, $_ := $backupList }}
|
||
|
<th>{{ $i }}</th>
|
||
|
{{ end }}
|
||
|
</tr>
|
||
|
<tr>
|
||
|
{{ range $seen := $backupList }}
|
||
|
{{ if $seen }}
|
||
|
<td class="success">x</td>
|
||
|
{{ else }}
|
||
|
<td class="error">!!</td>
|
||
|
{{ end }}
|
||
|
</td>
|
||
|
{{ end }}
|
||
|
</tr>
|
||
|
</table>
|
||
|
<br><hr><br>
|
||
|
{{ end }}
|
||
|
{{ end }}
|