Improve paging between blocks in explorer
This commit is contained in:
parent
7290f8bbcd
commit
df67d7dcaf
@ -1,4 +1,4 @@
|
||||
{{define "specific"}}{{$cs := .CoinShortcut}}{{$b := .Block}}{{$data := .}}
|
||||
{{define "specific"}}{{$cs := .CoinShortcut}}{{$b := .Block}}{{$data := . -}}
|
||||
<h1>Block {{$b.Height}}</h1>
|
||||
<div class="alert alert-data">
|
||||
<span class="ellipsis data">{{$b.Hash}}</span>
|
||||
@ -7,8 +7,8 @@
|
||||
<h3 class="h-container-6">Summary</h3>
|
||||
<nav class="h-container-6">
|
||||
<ul class="pagination justify-content-end">
|
||||
{{- if $b.Prev}}<li class="page-item"><a class="page-link" href="/explorer/block/{{$b.Prev}}">Previous Block</a></li>{{end -}}
|
||||
{{- if $b.Next}}<li class="page-item"><a class="page-link" href="/explorer/block/{{$b.Next}}">Next Block</a></li>{{end -}}
|
||||
<li class="page-item">{{if $b.Prev}}<a class="page-link" href="/explorer/block/{{$b.Prev}}">Previous Block</a>{{else}}<span class="page-link text-muted disabled">Previous Block</span>{{end}}</li>
|
||||
<li class="page-item">{{if $b.Next}}<a class="page-link" href="/explorer/block/{{$b.Next}}">Next Block</a>{{else}}<span class="page-link text-muted disabled">Next Block</span>{{end}}</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user