{{define "title"}}{{.Service.Name}} Status{{end}} {{define "description"}}{{$s := .Service}}{{if $s.Online }}{{.Service.Name}} is currently online and responding within {{$s.AvgTime}} milliseconds with {{$s.TotalUptime}}% total uptime on {{$s.Domain}}.{{else}}{{.Service.Name}} is currently offline on {{$s.Domain}}. Notify the admin to let them know their service is offline.{{end}}{{end}} {{ define "content" }} {{$s := .Service}}
{{if Auth}} {{template "nav"}} {{end}}
{{if $s.Online }} ONLINE {{ else }} OFFLINE {{end}}

{{ $s.Name }} {{if $s.Online }} ONLINE {{ else }} OFFLINE {{end}}

{{$s.Online24}}% Online last 24 Hours
{{$s.AvgTime}}ms Average Response
{{$s.TotalUptime}}% Total Uptime
{{FromUnix .Start}} {{FromUnix .End}}
{{if not $s.Online}}
{{$s.DowntimeText}}
{{end}} {{ if $s.LimitedFailures }}
{{ range $s.LimitedFailures }}
{{.ParseError}}
{{.Ago}}

{{.Issue}}

{{ end }}
{{ end }}
{{if Auth}}

Last Response

Edit Service

{{template "form_service" $s}}

Service Checkin

{{if $s.LimitedCheckins}} {{range $s.LimitedCheckins}} {{ $ch := . }} {{end}}
Checkin Report Period
Grace Period
Last Seen Expected
{{$ch.Name}}
{{$ch.Link}}
every {{Duration $ch.Period}}
after {{Duration $ch.Grace}}
{{ if $ch.Last.CreatedAt.IsZero}} Never {{else}} {{Ago $ch.Last.CreatedAt}} {{end}} {{ if $ch.Last.CreatedAt.IsZero}} - {{else}} {{ if lt $ch.Expected 0}}{{Duration $ch.Expected}} ago{{else}}in {{Duration $ch.Expected}}{{end}} {{end}} Delete
{{end}} {{template "form_checkin" $s}}
{{end}}
{{end}} {{define "extra_scripts"}} {{if USE_CDN}} {{ else }} {{end}} {{$s := .Service}} {{end}}