mempool/frontend/src/app/components/mempool-blocks/mempool-blocks.component.html

33 lines
1.7 KiB
HTML
Raw Normal View History

<div class="mempool-blocks-container">
2020-02-23 21:42:29 +01:00
<div class="flashing">
<ng-template ngFor let-projectedBlock [ngForOf]="mempoolBlocks$ | async" let-i="index" [ngForTrackBy]="trackByFn">
<div class="bitcoin-block text-center mempool-block" id="mempool-block-{{ i }}" [ngStyle]="mempoolBlockStyles[i]">
<a [routerLink]="['/mempool-block/' | relativeUrl, i]" class="blockLink">&nbsp;</a>
2020-07-30 10:38:55 +02:00
<div class="block-body">
2020-02-23 21:42:29 +01:00
<div class="fees">
~{{ projectedBlock.medianFee | number:'1.0-0' }} sat/vB
2020-02-23 21:42:29 +01:00
</div>
2020-07-20 06:03:53 +02:00
<div class="fee-span">
{{ projectedBlock.feeRange[0] | number:'1.0-0' }} - {{ projectedBlock.feeRange[projectedBlock.feeRange.length - 1] | number:'1.0-0' }} sat/vB
</div>
2020-02-23 21:42:29 +01:00
<div class="block-size">{{ projectedBlock.blockSize | bytes: 2 }}</div>
<div class="transaction-count">{{ projectedBlock.nTx | number }} transaction<ng-template [ngIf]="projectedBlock.nTx !== 1">s</ng-template></div>
2020-06-07 12:30:32 +02:00
<div class="time-difference" *ngIf="projectedBlock.blockVSize <= 1000000; else mergedBlock">
<ng-template [ngIf]="network === 'liquid'" [ngIfElse]="timeDiffMainnet">
In &lt; {{ 1 * i + 1 }} minute
</ng-template>
<ng-template #timeDiffMainnet>
In ~{{ 10 * i + 10 }} minutes
</ng-template>
</div>
2020-06-07 12:30:32 +02:00
<ng-template #mergedBlock>
<div class="time-difference"><b>({{ projectedBlock.blockVSize / 1000000 | ceil }} blocks)</b></div>
2020-02-23 21:42:29 +01:00
</ng-template>
</div>
2020-02-23 21:42:29 +01:00
<span class="animated-border"></span>
</div>
</ng-template>
</div>
<div *ngIf="arrowVisible" id="arrow-up" [ngStyle]="{'right': rightPosition + 75 + 'px', transition: transition }"></div>
</div>