Format transaction count numbers.

This commit is contained in:
softsimon 2020-04-07 00:44:22 +07:00
parent eaaf7bedc2
commit 498df53f25
No known key found for this signature in database
GPG Key ID: 488D7DCFB5A430D7
5 changed files with 7 additions and 7 deletions

View File

@ -42,7 +42,7 @@
<br>
<h2><ng-template [ngIf]="transactions?.length">{{ transactions?.length || '?' }} of </ng-template>{{ txCount }} transactions</h2>
<h2><ng-template [ngIf]="transactions?.length">{{ (transactions?.length | number) || '?' }} of </ng-template>{{ txCount | number }} transactions</h2>
<app-transactions-list [transactions]="transactions" [showConfirmations]="true" (loadMore)="loadMore()"></app-transactions-list>

View File

@ -22,7 +22,7 @@
</tr>
<tr>
<td>Transactions</td>
<td>{{ block.tx_count }}</td>
<td>{{ block.tx_count | number }}</td>
</tr>
<tr>
<td>Size</td>
@ -76,7 +76,7 @@
<br>
<h2><ng-template [ngIf]="transactions?.length">{{ transactions?.length || '?' }} of </ng-template>{{ block.tx_count }} transactions</h2>
<h2><ng-template [ngIf]="transactions?.length">{{ (transactions?.length | number) || '?' }} of </ng-template>{{ block.tx_count | number }} transactions</h2>
<app-transactions-list [transactions]="transactions" (loadMore)="loadMore()"></app-transactions-list>

View File

@ -10,7 +10,7 @@
<span class="yellow-color">~{{ block.medianFee | ceil }} sats/vB</span>
</div>
<div class="block-size">{{ block.size | bytes: 2 }}</div>
<div class="transaction-count">{{ block.tx_count }} transactions</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>

View File

@ -15,7 +15,7 @@
<td><a [routerLink]="['/block', block.id]" [state]="{ data: { block: block } }">{{ block.height }}</a></td>
<td class="d-none d-md-block">{{ block.timestamp * 1000 | date:'yyyy-MM-dd HH:mm' }}</td>
<td><app-time-since [time]="block.timestamp" [fastRender]="true"></app-time-since> ago</td>
<td class="d-none d-lg-block">{{ block.tx_count }}</td>
<td class="d-none d-lg-block">{{ block.tx_count | number }}</td>
<td>
<div class="progress position-relative">
<div class="progress-bar progress-mempool" role="progressbar" [ngStyle]="{'width': (block.weight / 4000000)*100 + '%' }"></div>

View File

@ -49,7 +49,7 @@
</tr>
<tr *ngIf="tx.vin.length > tx['@vinLength']">
<td colspan="3" class="text-center">
<button class="btn btn-sm btn-primary" (click)="loadMoreVin(tx)">Load more</button>
<button class="btn btn-sm btn-primary mt-2" (click)="loadMoreVin(tx)">Load more</button>
</td>
</tr>
</tbody>
@ -84,7 +84,7 @@
</tr>
<tr *ngIf="tx.vout.length > tx['@voutLength']">
<td colspan="3" class="text-center">
<button class="btn btn-sm btn-primary" (click)="loadMoreVout(tx)">Load more</button>
<button class="btn btn-sm btn-primary mt-2" (click)="loadMoreVout(tx)">Load more</button>
</td>
</tr>
<tr>