2020-07-11 00:17:13 +07:00
|
|
|
<div class="container-xl">
|
2020-07-13 23:22:24 +07:00
|
|
|
<h1 style="float: left;">Blocks</h1>
|
2020-07-11 00:17:13 +07:00
|
|
|
<br>
|
|
|
|
|
2020-07-13 15:16:12 +07:00
|
|
|
<div class="clearfix"></div>
|
|
|
|
|
2020-07-16 14:36:02 +07:00
|
|
|
<div class="table-responsive-sm">
|
|
|
|
<table class="table table-borderless table-striped">
|
|
|
|
<thead>
|
|
|
|
<th style="width: 25%;">Height</th>
|
|
|
|
<th style="width: 25%;">Timestamp</th>
|
|
|
|
<th style="width: 25%;">Total Sent (BSQ)</th>
|
|
|
|
<th style="width: 25%;">Transactions</th>
|
|
|
|
</thead>
|
|
|
|
<tbody *ngIf="!isLoading; else loadingTmpl">
|
|
|
|
<tr *ngFor="let block of blocks; trackBy: trackByFn">
|
|
|
|
<td><a [routerLink]="['/block/' | relativeUrl, block.hash]" [state]="{ data: { block: block } }">{{ block.height }}</a></td>
|
|
|
|
<td>{{ block.time | date:'yyyy-MM-dd HH:mm' }}</td>
|
|
|
|
<td>{{ calculateTotalOutput(block) / 100 | number: '1.2-2' }}</td>
|
|
|
|
<td>{{ block.txs.length }}</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2020-07-13 15:16:12 +07:00
|
|
|
|
|
|
|
<br>
|
|
|
|
|
|
|
|
<ngb-pagination [collectionSize]="totalCount" [rotate]="true" [pageSize]="itemsPerPage" [(page)]="page" (pageChange)="pageChange(page)" [maxSize]="5" [boundaryLinks]="true"></ngb-pagination>
|
|
|
|
|
2020-07-15 13:10:13 +07:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<ng-template #loadingTmpl>
|
|
|
|
<tr *ngFor="let i of loadingItems">
|
|
|
|
<td *ngFor="let j of [1, 2, 3, 4, 5]"><span class="skeleton-loader"></span></td>
|
|
|
|
</tr>
|
|
|
|
</ng-template>
|