Show collapsible IP check cycles in the registry

This commit is contained in:
ayurishchev committed 2026-11-23 11:53:08 +03:00
1 parent 94124747ce
commit b58d5f5b82
16 files changed
+332 -36

No files matched your search

+6 -2
View File
@@ -26,8 +26,12 @@
<h1 class="mono" style="display:flex;align-items:center;gap:10px">{{.Detail.IP.IPAddress}} <span class="pill {{$b.Class}}">{{$b.Label}}</span></h1>
</div>
<p class="muted"><a href="/registry/{{.Detail.IP.IPAddress}}">Полная история проверок этого адреса за всё время &rarr;</a></p>
{{template "ip_check_cycle" .}}
{{end}}
{{define "ip_check_cycle"}}
<p class="muted">
попытка {{.Detail.IP.AttemptNumber}} (повторов: {{.Detail.IP.RetryCount}})
попытка {{if .Detail.IP.AttemptNumber}}{{.Detail.IP.AttemptNumber}}{{else}}—{{end}} (повторов: {{if .HasQueueData}}{{.Detail.IP.RetryCount}}{{else}}—{{end}})
· валидатор {{deref .Detail.IP.OwnerValidatorID}}
</p>
<p class="muted">
@@ -36,7 +40,7 @@
</p>
{{if .Detail.SelfCheckFailedOn}}<p class="muted">Self-check не прошёл на: {{join .Detail.SelfCheckFailedOn ", "}}</p>{{end}}
<h2 class="section-title">Проверки (попытка {{.Detail.IP.AttemptNumber}})</h2>
<h2 class="section-title">Проверки{{if .Detail.IP.AttemptNumber}} (попытка {{.Detail.IP.AttemptNumber}}){{end}}</h2>
{{if .Detail.Checks}}
<div class="panel">
<div class="table-scroll">