blockbook/static/internal_templates/block_internal_data_errors.html
2023-04-13 11:28:52 +02:00

35 lines
1.1 KiB
HTML

{{define "specific"}}
<h3>Blocks with errors from fetching internal data</h3>
<div class="row g-0">
<div class="col-md-11">Count: {{len .InternalDataErrors}}</div>
<div class="col-md-1 justify-content-right">
{{if .RefetchingInternalData}}Fetching...{{else}}
<form method="POST" action="/admin/internal-data-errors">
<button type="submit" class="btn btn-outline-secondary">Retry fetch</button>
</form>
{{end}}
</div>
</row>
<div>
<table class="table table-hover">
<thead>
<tr>
<th>Height</th>
<th class="col-md-6">Hash</th>
<th class="col-md-1 text-end">Retries</span></th>
<th>Error Message</th>
</tr>
</thead>
<tbody>
{{range $e := .InternalDataErrors}}
<tr>
<td>{{formatUint32 $e.Height}}</a></td>
<td class="ellipsis">{{$e.Hash}}</td>
<td class="text-end">{{$e.Retries}}</td>
<td>{{$e.ErrorMessage}}</td>
</tr>
{{end}}
</tbody>
</table>
</div>
{{end}}