{{define "theme-default/service"}} {{template "common/header" .}} {{if ts .CustomCode}} {{.CustomCode|safe}} {{end}} {{template "common/menu" .}}
{{range $service := .Services}} {{end}}
{{tr "Name"}} {{tr "30DaysOnline"}} {{tr "Details"}} {{tr "Status"}}
{{$service.Monitor.Name}} {{float32f (divU64 $service.TotalUp (addU64 $service.TotalUp $service.TotalDown))}}% {{range $i,$d := $service.Delay}}
{{end}}
{{statusName (divU64 $service.CurrentUp (addU64 $service.CurrentUp $service.CurrentDown))}}
{{if .CycleTransferStats}}

{{tr "CycleTransferStats"}}

{{range $id, $stats := .CycleTransferStats}} {{range $innerId, $transfer := $stats.Transfer}} {{end}} {{end}}
ID {{tr "Rules"}} {{tr "Server"}} {{tr "From"}} {{tr "To"}} MAX MIN {{tr "NextCheck"}} {{tr "CurrentUsage"}}
{{$id}} {{$stats.Name}} {{index $stats.ServerName $innerId}} {{$stats.From|tf}} {{$stats.To|tf}} {{$stats.Max|bf}} {{$stats.Min|bf}} {{(index $stats.NextUpdate $innerId)|sft}} {{$transfer|bf}}
{{end}}
{{template "common/footer" .}} {{end}}