{{define "title"}}{{.Title}}{{end}} {{define "content"}} {{$page := .Page}} {{$host := $page.Host}}
Dashboard/{{$host.Name}}
{{/* ---------- header ---------- */}}
{{if eq $host.Status "online"}} {{else if eq $host.Status "degraded"}} {{else if eq $host.Status "offline"}} {{else}} {{end}}

{{$host.Name}}

{{range $host.Tags}}{{.}}{{end}}
{{$host.OS}}/{{$host.Arch}} · agent {{if $host.AgentVersion}}{{$host.AgentVersion}}{{else}}—{{end}} · restic {{if $host.ResticVersion}}{{$host.ResticVersion}}{{else}}—{{end}} · {{if eq $host.Status "offline"}} last seen {{relTime $host.LastSeenAt}} {{else}} online · last heartbeat {{relTime $host.LastSeenAt}} {{end}}
{{if eq $host.Status "offline"}} {{else if not $host.RepoInitialisedAt}} {{else}} {{end}}
{{/* ---------- vitals strip ---------- */}}
Last backup
{{if eq (deref $host.LastBackupStatus) "succeeded"}} succeeded {{else if eq (deref $host.LastBackupStatus) "failed"}} failed {{else if eq (deref $host.LastBackupStatus) "cancelled"}} cancelled {{else}} never run {{end}} {{if $host.LastBackupAt}} · {{relTime $host.LastBackupAt}}{{end}}
Repo size
{{bytes $host.RepoSizeBytes}}
Snapshots
{{comma $host.SnapshotCount}}
Open alerts
{{if eq $host.OpenAlertCount 0}}0 · all clear{{else}}{{$host.OpenAlertCount}} · review →{{end}}
{{/* ---------- secondary tabs ---------- */}}
Snapshots {{comma $host.SnapshotCount}} Schedules
Jobs
Repo
Settings
{{/* ---------- snapshots tab ---------- */}}

Snapshots

showing {{$page.SnapshotsShown}} of {{comma $host.SnapshotCount}}
{{if eq (len $page.Snapshots) 0}}

No snapshots yet.

Once a backup completes, the agent will refresh this list automatically.

{{if ne $host.Status "offline"}}
{{if not $host.RepoInitialisedAt}} {{else}} {{end}}
{{end}}
{{else}}
Snapshot id
Time
Paths
Size
Files
{{range $i, $s := $page.Snapshots}}
{{$s.ShortID}}
{{absTime $s.Time}}
{{joinDot $s.Paths}}
{{bytes $s.SizeBytes}}
{{if eq $s.FileCount 0}}{{else}}{{comma $s.FileCount}}{{end}}
{{end}} {{end}}
{{if eq $host.SnapshotCount 0}} {{else if gt $host.SnapshotCount $page.SnapshotsShown}}
showing the {{$page.SnapshotsShown}} most-recent snapshots — full pagination lands later
{{end}}
{{/* ---------- right rail ---------- */}}
{{end}}