github.com/trezor/blockbook@v0.4.1-0.20240328132726-e9a08582ee2c/static/internal_templates/block_internal_data_errors.html (about)

     1  {{define "specific"}}
     2  <h3>Blocks with errors from fetching internal data</h3>
     3  <div class="row g-0">
     4      <div class="col-md-11">Count: {{len .InternalDataErrors}}</div>
     5      <div class="col-md-1 justify-content-right">
     6          {{if .RefetchingInternalData}}Fetching...{{else}}
     7          <form method="POST" action="/admin/internal-data-errors">
     8              <button type="submit" class="btn btn-outline-secondary">Retry fetch</button>
     9          </form>    
    10          {{end}}
    11      </div>
    12  </row>
    13  <div>
    14      <table class="table table-hover">
    15          <thead>
    16              <tr>
    17                  <th>Height</th>
    18                  <th class="col-md-6">Hash</th>
    19                  <th class="col-md-1 text-end">Retries</span></th>
    20                  <th>Error Message</th>
    21              </tr>
    22          </thead>
    23          <tbody>
    24              {{range $e := .InternalDataErrors}}
    25              <tr>
    26                  <td>{{formatUint32 $e.Height}}</a></td>
    27                  <td class="ellipsis">{{$e.Hash}}</td>
    28                  <td class="text-end">{{$e.Retries}}</td>
    29                  <td>{{$e.ErrorMessage}}</td>
    30              </tr>
    31              {{end}}
    32          </tbody>
    33      </table>
    34  </div>
    35  {{end}}