{{if .Total -}}
pgDash Alerts for *{{.Server}}* - {{len .Criticals}} criticals, {{len .Warnings}} warnings
{{if .Criticals -}}
*Criticals*
{{range .Criticals -}}
• {{.Text}}: @L{{.ObjectLink}}|{{.ObjectName}}@R {{.Current}}
{{end -}}
{{end -}}
{{- if .Warnings}}
*Warnings*
{{range .Warnings -}}
• {{.Text}}: @L{{.ObjectLink}}|{{.ObjectName}}@R {{.Current}}
{{end}}
{{end}}
{{- else}}
pgDash Alerts for *{{.Server}}* - back to normal
{{end}}