backup-notify/templates/backup_list.html

28 lines
621 B
HTML
Raw Normal View History

2024-04-21 21:46:40 -04:00
{{ 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 }}