backup-notify/templates/backup_list.html
2024-04-21 18:46:40 -07:00

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 }}