57 lines
1.9 KiB
HTML
57 lines
1.9 KiB
HTML
{{define "ip_detail_page"}}
|
||
<!doctype html>
|
||
<html lang="ru">
|
||
<head>{{template "html_head" .}}</head>
|
||
<body>
|
||
{{template "page_header" .}}
|
||
<main>
|
||
<div id="error-banner">{{template "banner_inner" .Banner}}</div>
|
||
{{template "ip_detail_content" .}}
|
||
</main>
|
||
</body>
|
||
</html>
|
||
{{end}}
|
||
|
||
{{define "ip_detail_content"}}
|
||
<p><a href="/ips">← К очереди</a></p>
|
||
<h1>{{.Detail.IP.IPAddress}}</h1>
|
||
{{$b := ipBadge .Detail.IP.State .Detail.IP.OverallResult}}
|
||
<p>
|
||
<span class="{{$b.Class}}">{{$b.Label}}</span>
|
||
· попытка {{.Detail.IP.AttemptNumber}} (повторов: {{.Detail.IP.RetryCount}})
|
||
· валидатор {{deref .Detail.IP.OwnerValidatorID}}
|
||
</p>
|
||
<p class="muted">
|
||
создан: {{fmtTime .Detail.IP.CreatedAt}} · назначен: {{fmtTime .Detail.IP.AssignedAt}} ·
|
||
агрегирован: {{fmtTime .Detail.IP.AggregatedAt}} · FIP освобождён: {{fmtTime .Detail.IP.FIPReleasedAt}}
|
||
</p>
|
||
|
||
<h2>Проверки (попытка {{.Detail.IP.AttemptNumber}})</h2>
|
||
{{if .Detail.Checks}}
|
||
<table class="compact" role="grid">
|
||
<thead><tr><th>Источник</th><th>Тип</th><th>Цель</th><th>Успех</th><th>Задержка, мс</th><th>Время</th><th>Детали</th></tr></thead>
|
||
<tbody>
|
||
{{range .Detail.Checks}}
|
||
<tr>
|
||
<td>{{.Source}}</td><td>{{.CheckType}}</td><td>{{.Target}}</td>
|
||
<td>{{if .Success}}✅{{else}}❌{{end}}</td>
|
||
<td>{{.LatencyMS}}</td><td>{{fmtTime .CheckedAt}}</td><td>{{.Detail}}</td>
|
||
</tr>
|
||
{{end}}
|
||
</tbody>
|
||
</table>
|
||
{{else}}<p class="muted">Проверок пока нет.</p>{{end}}
|
||
|
||
<h2>События</h2>
|
||
{{if .Detail.Events}}
|
||
<table class="compact" role="grid">
|
||
<thead><tr><th>Время</th><th>Тип</th><th>Источник</th><th>Данные</th></tr></thead>
|
||
<tbody>
|
||
{{range .Detail.Events}}
|
||
<tr><td>{{fmtTime .OccurredAt}}</td><td>{{.EventType}}</td><td>{{.SourceType}} {{.SourceID}}</td><td>{{.Payload}}</td></tr>
|
||
{{end}}
|
||
</tbody>
|
||
</table>
|
||
{{else}}<p class="muted">Событий нет.</p>{{end}}
|
||
{{end}}
|