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

     1  {{define "specific"}}{{$blocks := .Blocks}}{{$data := .}}
     2  <div class="row">
     3      <div class="col-md-6"><h1>Blocks</h1></div>
     4      <div class="col-md-6">{{if $blocks.Blocks}}{{template "paging" $data }}{{end}}</div>
     5  </row>
     6  {{if $blocks.Blocks}}
     7  <div>
     8      <table class="table table-hover data-table">
     9          <thead>
    10              <tr>
    11                  <th>Height</th>
    12                  <th class="col-md-6">Hash</th>
    13                  <th class="col-md-2">Timestamp</span></th>
    14                  <th class="text-end">Transactions</th>
    15                  <th class="text-end">Size</th>
    16              </tr>
    17          </thead>
    18          <tbody>
    19              {{range $b := $blocks.Blocks}}
    20              <tr>
    21                  <td><a href="/block/{{$b.Height}}">{{formatUint32 $b.Height}}</a></td>
    22                  <td class="ellipsis">{{$b.Hash}}</td>
    23                  <td>{{unixTimeSpan $b.Time}}</td>
    24                  <td class="text-end">{{formatUint32 $b.Txs}}</td>
    25                  <td class="text-end">{{formatUint32 $b.Size}}</td>
    26              </tr>
    27              {{end}}
    28          </tbody>
    29      </table>
    30  </div>
    31  {{template "paging" $data }}
    32  {{end}}{{end}}