{{define "overview_stats"}}
Готово {{.Progress.Done}} из {{.Progress.Total}} ({{.Progress.Percent}}%) · в работе {{.Progress.Active}} · в очереди {{.Progress.Queued}}{{if .Progress.ETA}} · осталось ≈ {{.Progress.ETA}}{{end}}
Итоги проверок: pass {{index . "pass"}} · partial {{index . "partial"}} · fail {{index . "fail"}} · cancelled {{index . "cancelled"}}
{{end}}{{end}} {{with .Scan}}Сканирование: {{.StateLabel}}{{if .DryRun}} (пробное){{end}} · прочитано страниц {{.Pages}}, найдено адресов {{.Discovered}}, свободных {{.Free}}{{if .Handled}}, обработано {{.Handled}}{{end}} · подробнее
{{end}} {{with .AutoCycle}}{{if .Enabled}}Автоцикл активен · {{.PhaseLabel}} · следующий запуск: {{fmtTime .NextRunAt}}
{{end}}{{end}} {{end}} {{/* Out-of-band counterpart of overview_stats, appended to every /overview/fragment response alongside overview_tables (the actual hx-target) — same OOB idiom as templates/layout.html's error_banner. Needed because overview_stats lives outside the polled #overview-tables div (see overview.html) so the DOM order can be stats -> filter form -> tables, yet the stat counts still refresh on every poll tick. */}} {{define "overview_stats_oob"}}| Адрес | Состояние | Валидатор | Попытка | Назначено |
|---|---|---|---|---|
| {{.IPAddress}} | {{$b.Label}} | {{deref .OwnerValidatorID}} | {{.AttemptNumber}} | {{fmtTime .AssignedAt}} |
Показано {{len .ActiveItems}} из {{.ActiveTotal}} · все в работе
{{end}} {{else}} {{if or .Query .StatusFilter}}Ничего не найдено по текущему фильтру.
{{else}}Сейчас нет адресов в обработке.
{{end}} {{end}} {{if not .StatusFilter}}В очереди: {{.QueuedTotal}} · открыть весь список
{{if .QueuedItems}}| Ближайшие в очереди | Состояние |
|---|---|
| {{.IPAddress}} | {{$b.Label}} |
Показаны ближайшие {{len .QueuedItems}} из {{.QueuedTotal}}.
{{end}} {{end}} {{end}}| Адрес | Итог | Завершено |
|---|---|---|
| {{.IPAddress}} | {{$b.Label}} | {{fmtTime .AggregatedAt}} |
Ничего не найдено по текущему фильтру.
{{else}}Пока ничего не завершено.
{{end}} {{end}} {{end}}