{{define "theme-daynight/service"}} {{.Title}} {{if ts .CustomCode}} {{.CustomCode|safe}} {{end}}

{{tr "Status"}}

{{tr "30DaysOnline"}}

{{range $service := .Services}}
{{statusName (divU64 $service.CurrentUp (addU64 $service.CurrentUp $service.CurrentDown))}}
{{$service.Monitor.Name}}
{{$service.TotalUptime|float32f}}%
{{range $i,$d := $service.Delay}} {{end}}
{{end}}
{{if .CycleTransferStats}}

{{tr "CycleTransferStats"}}

{{range $id, $stats := .CycleTransferStats}} {{range $innerId, $transfer := $stats.Transfer}} {{$TransLeftPercent := TransLeftPercent (UintToFloat $transfer) (UintToFloat $stats.Max)}} {{end}} {{end}}
ID {{tr "Rules"}} {{tr "Server"}} {{tr "From"}} {{tr "To"}} MAX MIN {{tr "NextCheck"}} {{tr "CurrentUsage"}} {{tr "Transleft"}}
{{$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}} {{TransLeft $stats.Max $transfer}} / {{$TransLeftPercent}} %
{{end}}
{{end}}