30 lines
1.0 KiB
HTML
30 lines
1.0 KiB
HTML
{{define "specific"}}{{$blocks := .Blocks}}{{$data := .}}
|
|
<h1>Blocks
|
|
<small class="text-muted">by date</small>
|
|
</h1>
|
|
{{if $blocks.Blocks -}}
|
|
<nav>{{template "paging" $data }}</nav>
|
|
<div class="data-div">
|
|
<table class="table table-striped data-table table-hover">
|
|
<thead>
|
|
<tr>
|
|
<th style="width: 20%;">Height</th>
|
|
<th>Timestamp</span></th>
|
|
<th class="text-right" style="width: 20%;">Transactions</th>
|
|
<th class="text-right" style="width: 20%;">Size</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{{- range $b := $blocks.Blocks -}}
|
|
<tr>
|
|
<td><a href="/block/{{$b.Height}}">{{$b.Height}}</a></td>
|
|
<td>{{formatUnixTime $b.Time}}</td>
|
|
<td class="text-right">{{$b.Txs}}</td>
|
|
<td class="text-right">{{$b.Size}}</td>
|
|
</tr>
|
|
{{- end -}}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<nav>{{template "paging" $data }}</nav>
|
|
{{end}}{{end}} |