Fix next block text showing prev block height/hash

Remove the next block's hash (since we don't have it on this page; we
were showing the prev hash).

Also replace « and » with ⏴ ⏵ which better match the ⏭ for latest block.
This commit is contained in:
Jason Rhinelander 2021-05-11 13:57:15 -03:00
parent 9f4d6dca89
commit 10e4322d2c
1 changed files with 2 additions and 2 deletions

View File

@ -12,11 +12,11 @@
</h4>
<h4 style="margin:5px" class="prev_next_block">
{%if block_header.height > 0%}
<a href="/block/{{block_header.height-1}}{%if details_html%}/1{%endif%}">« Block {{block_header.height-1}} <span class="comment">({{block_header.prev_hash | ellipsize(8,3)}})</span></a>
<a href="/block/{{block_header.height-1}}{%if details_html%}/1{%endif%}"> Block {{block_header.height-1}} <span class="comment">({{block_header.prev_hash | ellipsize(8,3)}})</span></a>
{%endif%}
{%if block_header.height < info.height - 1%}
{%if block_header.height > 0%} | {%endif%}
<a href="/block/{{block_header.height+1}}{%if details_html%}/1{%endif%}">Block {{block_header.height-1}} <span class="comment">({{block_header.prev_hash | ellipsize(10,3)}})</span> »</a>
<a href="/block/{{block_header.height+1}}{%if details_html%}/1{%endif%}">Block {{block_header.height+1}} ⏵</a>
|
<a href="/block/latest">Latest block ⏭</a>
{%endif%}