mirror of
https://github.com/mempool/mempool.git
synced 2025-02-24 22:58:30 +01:00
flow diagram zero-indexed inputs & outputs
This commit is contained in:
parent
ca26154426
commit
96bec279a9
1 changed files with 3 additions and 3 deletions
|
@ -43,7 +43,7 @@
|
||||||
<span *ngSwitchCase="'output'" i18n="transaction.output">Output</span>
|
<span *ngSwitchCase="'output'" i18n="transaction.output">Output</span>
|
||||||
<span *ngSwitchCase="'fee'" i18n="transaction.fee|Transaction fee">Fee</span>
|
<span *ngSwitchCase="'fee'" i18n="transaction.fee|Transaction fee">Fee</span>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
<span *ngIf="line.type !== 'fee'"> #{{ line.index + 1 }}</span>
|
<span *ngIf="line.type !== 'fee'"> #{{ line.index }}</span>
|
||||||
<ng-container [ngSwitch]="line.type">
|
<ng-container [ngSwitch]="line.type">
|
||||||
<span *ngSwitchCase="'input'">
|
<span *ngSwitchCase="'input'">
|
||||||
<ng-container *ngIf="line.status?.block_height">
|
<ng-container *ngIf="line.status?.block_height">
|
||||||
|
@ -73,7 +73,7 @@
|
||||||
<app-truncate [text]="line.txid"></app-truncate>
|
<app-truncate [text]="line.txid"></app-truncate>
|
||||||
</p>
|
</p>
|
||||||
<ng-container [ngSwitch]="line.type">
|
<ng-container [ngSwitch]="line.type">
|
||||||
<p *ngSwitchCase="'input'"><span i18n="transaction.output">Output</span> #{{ line.vout + 1 }}
|
<p *ngSwitchCase="'input'"><span i18n="transaction.output">Output</span> #{{ line.vout }}
|
||||||
<ng-container *ngIf="line.status?.block_height">
|
<ng-container *ngIf="line.status?.block_height">
|
||||||
<ng-container *ngIf="line.blockHeight; else noBlockHeight">
|
<ng-container *ngIf="line.blockHeight; else noBlockHeight">
|
||||||
<ng-container *ngTemplateOutlet="nBlocksEarlier; context:{n: line.blockHeight - line?.status?.block_height, connector: true}"></ng-container>
|
<ng-container *ngTemplateOutlet="nBlocksEarlier; context:{n: line.blockHeight - line?.status?.block_height, connector: true}"></ng-container>
|
||||||
|
@ -83,7 +83,7 @@
|
||||||
</ng-template>
|
</ng-template>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
</p>
|
</p>
|
||||||
<p *ngSwitchCase="'output'"><span i18n="transaction.input">Input</span> #{{ line.vin + 1 }}
|
<p *ngSwitchCase="'output'"><span i18n="transaction.input">Input</span> #{{ line.vin }}
|
||||||
<ng-container *ngIf="line.blockHeight">
|
<ng-container *ngIf="line.blockHeight">
|
||||||
<ng-container *ngIf="line?.status?.block_height; else noBlockHeight">
|
<ng-container *ngIf="line?.status?.block_height; else noBlockHeight">
|
||||||
<ng-container *ngTemplateOutlet="nBlocksLater; context:{n: line?.status?.block_height - line.blockHeight, connector: true}"></ng-container>
|
<ng-container *ngTemplateOutlet="nBlocksLater; context:{n: line?.status?.block_height - line.blockHeight, connector: true}"></ng-container>
|
||||||
|
|
Loading…
Add table
Reference in a new issue