Fix prev next in block view page

This commit is contained in:
vijikannan 2019-07-24 13:08:27 +05:30
parent 6777743f53
commit e98f80f9ab
3 changed files with 23 additions and 216 deletions

File diff suppressed because one or more lines are too long

View File

@ -16,6 +16,25 @@
<img src="assets/img/block.png" height="30" class="block_rotate float-left mr-2" />
Block {{ hashdata.BlockchainBlockFetchQuery.Height }}
</h3>
<ul class="pagination justify-content-end m-0 d-inline-flex float-right">
<li
class="page-item" *ngIf="hashdata.BlockchainBlockFetchQuery.PreviousId"
>
<a class="page-link" routerLink="/blockdetail/{{ hashdata.BlockchainBlockFetchQuery.Height - 1 }}" ><i class="fa fa-angle-left"></i></a>
</li>
<li class="page-item d-none d-md-inline-flex">
<a class="page-link"
>{{ hashdata.BlockchainBlockFetchQuery.Height }}</a
>
</li>
<li
class="page-item" *ngIf="latestblockHeight!=hashdata.BlockchainBlockFetchQuery.Height"
>
<a class="page-link" routerLink="/blockdetail/{{ hashdata.BlockchainBlockFetchQuery.Height + 1 }}" ><i class="fa fa-angle-right"></i></a>
</li>
</ul>
<div class="row mb-3">
<div class="col-sm-6 col-md-4 mt-4">
<div class="d-inline-block align-middle">

View File

@ -26,25 +26,25 @@
</div> -->
<div class="row" *ngIf="latestblockdetail">
<div class="col-md-3">
<div class="text-center detail_div">
<div class="text-center detail_div minhgt">
<p class="count mb-0">{{ latestblockdetail.block_height | number }}</p>
<p class="mb-0 desc">{{'home.BLOCKCHAIN_HEIGHT' | translate}}</p>
</div>
</div>
<div class="col-md-3">
<div class="text-center detail_div">
<div class="text-center detail_div minhgt">
<p class="count mb-0">{{latestblockdetail.letest_block_num}} <span class="">{{latestblockdetail.letest_block_duration}}</span></p>
<p class="mb-0 desc">{{'home.LATEST_BLOCK' | translate}}</p>
</div>
</div>
<div class="col-md-3">
<div class="text-center detail_div">
<div class="text-center detail_div minhgt">
<p class="count mb-0">{{latestblockdetail.difficulty | number}} / {{latestblockdetail.targetdifficulty | number}}</p>
<p class="mb-0 desc">{{'home.LATEST_BLOCK1' | translate}}</p>
</div>
</div>
<div class="col-md-3">
<div class="text-center detail_div">
<div class="text-center detail_div minhgt">
<p class="count mb-0">{{latestblockdetail.coin_existence | number}} <span class="">Epic</span></p>
<p class="mb-0 desc">{{'home.COIN_IN' | translate}}</p>
</div>