summaryrefslogtreecommitdiff
path: root/templates/backup_list.html
blob: 82256b165f60b0637a01aa665b065deef7df41b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{{ 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 }}