{{define "dashboard.html"}} {{template "base" .}} {{end}} {{define "content"}} {{if .Error}}
{{.Error}}
{{end}}
{{if .UpdateAvailable}}
Software Update Available

{{.UpdateMessage}}

{{if .UpdateURL}} View release → {{end}}
{{end}}
System Information
{{if .Hostname}}{{end}} {{if .Contact}}{{end}} {{if .Location}}{{end}} {{if .OSName}}{{end}} {{if .Machine}}{{end}} {{if .Software}}{{end}}
Hostname{{.Hostname}}
Contact{{.Contact}}
Location{{.Location}}
OS{{.OSName}} {{.OSVersion}}
Architecture{{.Machine}}
Boot Partition{{.Software}}
Runtime
{{if .Uptime}}{{end}} {{if .CurrentTime}}{{end}} {{if .MemTotal}} {{end}} {{if .Load1}} {{end}}
Uptime{{.Uptime}}
Current Time{{.CurrentTime}}
Memory
{{.MemUsed}} / {{.MemTotal}} MiB ({{.MemPercent}}%)
Load Average {{.Load1}} · {{.Load5}} · {{.Load15}}
{{if .Board.Model}}
Board
{{if .Board.Manufacturer}}{{end}} {{if .Board.SerialNum}}{{end}} {{if .Board.HardwareRev}}{{end}} {{if .Board.BaseMAC}}{{end}}
Model{{.Board.Model}}
Manufacturer{{.Board.Manufacturer}}
Serial Number{{.Board.SerialNum}}
Hardware Rev{{.Board.HardwareRev}}
Base MAC{{.Board.BaseMAC}}
{{end}} {{if .KeyVitals}}
Key Vitals All sensors →
{{range .KeyVitals}} {{end}}
{{.Name}}{{.Value}}
{{end}} {{if .Disks}}
Disk Usage
{{range .Disks}}
{{.Mount}}{{if .ReadOnly}} read-only{{end}} {{.Percent}}%
{{.Available}} free of {{.Size}}
{{end}}
{{end}}
Connectivity
{{if .DNSSearch}} {{end}} {{if .NTPSync}} {{end}}
Gateway {{range .Gateways}}
{{.Addr}}{{if .Iface}} via {{.Iface}}{{end}}
{{else}}none{{end}}
Internet {{.InternetProbe}}
DNS {{range .DNSServers}}
{{.Address}} {{if eq .Origin "dhcp"}}DHCP{{if .Interface}} · {{.Interface}}{{end}}{{else}}{{.Origin}}{{end}}
{{else}}none{{end}}
Search{{range $i, $s := .DNSSearch}}{{if $i}}, {{end}}{{$s}}{{end}}
Timesynced · {{.NTPSync}}
{{if .Addresses}}
{{range .Addresses}} {{end}}
{{.Name}} {{range $i, $a := .Addrs}}{{if $i}}
{{end}}{{$a}}{{end}}
{{end}}
{{end}}