mirror of
https://github.com/mempool/mempool.git
synced 2025-01-10 07:26:46 +01:00
36e46249b5
Chime on new blocks. fixes #47 fixes #84
21 lines
1.1 KiB
HTML
21 lines
1.1 KiB
HTML
<div class="blocks-container" *ngIf="blocks.length">
|
|
<div *ngFor="let block of blocks; let i = index; trackBy: trackByBlocksFn" >
|
|
<div class="text-center bitcoin-block mined-block" id="bitcoin-block-{{ block.height }}" [ngStyle]="blockStyles[i]">
|
|
<a [routerLink]="['/block/' | relativeUrl, block.id]" [state]="{ data: { block: block } }" class="blockLink"> </a>
|
|
<div class="block-height">
|
|
<a [routerLink]="['/block/' | relativeUrl, block.id]" [state]="{ data: { block: block } }">{{ block.height }}</a>
|
|
</div>
|
|
<div class="block-body">
|
|
<div class="fees">
|
|
~{{ block.medianFee | number:'1.0-0' }} sat/vB
|
|
</div>
|
|
<div class="block-size">{{ block.size | bytes: 2 }}</div>
|
|
<div class="transaction-count">{{ block.tx_count | number }} transactions</div>
|
|
<br /><br />
|
|
<div class="time-difference"><app-time-since [time]="block.timestamp" [fastRender]="true"></app-time-since> ago</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div [hidden]="!arrowVisible" id="arrow-up" [style.transition]="transition" [ngStyle]="{'left': arrowLeftPx + 'px' }"></div>
|
|
</div>
|