{{define "title"}}{{ .Console.Name }} Console{{end}} {{define "favicon"}} {{if .Console.FaviconURL}} {{else}} {{end}} {{end}} {{define "head"}} {{if .Reload}} {{end}} {{end}} {{ define "controls" }} (Show: default 25 50 100 200 ) [ expand ] {{ end }} {{define "body"}} {{ $console := .Console }}
{{ if $console.FaviconURL }} {{ end }}

{{ $console.Name }}

{{ if $console.Header }} {{ $header := $console.Header }} {{ with $header.TreeStatus }}
{{ .Message }}
{{ end }}
Oncalls
{{ range $header.Oncalls }}
{{ .Name }}
{{ $numEmails := (len .Emails) }} {{ if gt $numEmails 0 }} {{ range $i, $email := .Emails }} {{ . | shortenEmail | obfuscateEmail }}{{ if lt $i (sub $numEmails 1) }},{{ end }} {{ end }} {{ else if .Primary }} {{ .Primary }} {{if .Secondaries }} (primary) {{ range .Secondaries }} , {{ . }} {{ end }} {{ end }} {{ else }} <none> {{ end }}
{{ end }}
Links
{{ range $header.Links }} {{ end }}
{{ if $header.ConsoleGroups }}
{{ range $header.ConsoleGroups }} {{ if .Title }}
{{ .Title.HTML }}
{{ end }}
{{ range .Consoles }} {{ if gt (len .Builders) 30 }}
{{ .Name.HTML }}
{{ else }}
{{ .Name.HTML }}
{{ end }} {{ $console_name := .Name.Link.Label }} {{ range .Builders }}
{{ end }}
{{ end }}
{{ if .Title }}
{{ end }} {{ end }}
{{ end }}
{{ end }}
Legend:   Passed Failed Failed Again Running Exception
{{ template "controls" }}
{{end}}