{{/* Overview (mockup overview.html): the verdict in the head, the six checks as
cards, and the two kinds of domain at a glance. Everything behind a card is
on Health. The inbound box exists only while the inbound relay is on; without
it the outbound box takes the whole width. */}}
{{define "content"}}
{{template "page_head" .Head}}
{{template "overview_cards" .}}
{{if .InboundOn}}
{{template "overview_outbound" .}}
{{template "overview_inbound" .}}
{{else}}
{{template "overview_outbound" .}}
{{end}}
{{end}}
{{define "overview_outbound"}}
{{template "box_open" .Outbound}}
{{if .OutboundRows}}
| Domain | DNS | Apps | {{.Days}} days |
{{range .OutboundRows}}
| {{.Name}} | {{range $i, $t := .DNS}}{{if $i}} {{end}}{{template "tag" $t}}{{end}} | {{.Apps}} | {{.Messages}} |
{{end}}
{{else}}
{{template "empty_state" .OutboundEmpty}}
{{end}}
{{template "box_close"}}
{{end}}
{{define "overview_inbound"}}
{{template "box_open" .Inbound}}
{{if .InboundRows}}
| Domain | MX | Upstream |
{{range .InboundRows}}
| {{.Name}} | {{template "tag" .MX}} | {{.Upstream}} |
{{end}}
{{else}}
{{template "empty_state" .InboundEmpty}}
{{end}}
{{template "box_close"}}
{{end}}