{{template "base/head" .}}
{{template "admin/navbar" .}}
{{template "base/alert" .}}

{{.i18n.Tr "admin.monitor.cron"}}

{{range .Entries}} {{end}}
{{.i18n.Tr "admin.monitor.name"}} {{.i18n.Tr "admin.monitor.schedule"}} {{.i18n.Tr "admin.monitor.next"}} {{.i18n.Tr "admin.monitor.previous"}} {{.i18n.Tr "admin.monitor.execute_times"}}
{{$.i18n.Tr (printf "admin.dashboard.%s" .Name)}} {{.Spec}} {{DateFmtLong .Next}} {{if gt .Prev.Year 1 }}{{DateFmtLong .Prev}}{{else}}N/A{{end}} {{.ExecTimes}}
{{.CsrfTokenHtml}}

{{.i18n.Tr "admin.monitor.queues"}}

{{range .Queues}} {{end}}
{{.i18n.Tr "admin.monitor.queue.name"}} {{.i18n.Tr "admin.monitor.queue.type"}} {{.i18n.Tr "admin.monitor.queue.exemplar"}} {{.i18n.Tr "admin.monitor.queue.numberworkers"}}
{{.Name}} {{.Type}} {{.ExemplarType}} {{$sum := .NumberOfWorkers}}{{if lt $sum 0}}-{{else}}{{$sum}}{{end}} {{if lt $sum 0}}{{$.i18n.Tr "admin.monitor.queue.review"}}{{else}}{{$.i18n.Tr "admin.monitor.queue.review_add"}}{{end}}

{{.i18n.Tr "admin.monitor.process"}}

{{range .Processes}} {{end}}
Pid {{.i18n.Tr "admin.monitor.desc"}} {{.i18n.Tr "admin.monitor.start"}} {{.i18n.Tr "admin.monitor.execute_time"}}
{{.PID}} {{.Description}} {{DateFmtLong .Start}} {{TimeSince .Start $.Lang}} {{svg "octicon-trash" 16 "text-red"}}
{{template "base/footer" .}}