2020-07-03 23:45:19 +07:00
|
|
|
<div class="header-bg box">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col">
|
|
|
|
<table class="table table-borderless smaller-text table-xs" style="margin: 0;">
|
|
|
|
<tbody>
|
|
|
|
<ng-template ngFor let-input [ngForOf]="tx.inputs" [ngForTrackBy]="trackByIndexFn">
|
|
|
|
<tr *ngIf="input.isVerified">
|
|
|
|
<td class="arrow-td">
|
|
|
|
<ng-template [ngIf]="input.spendingTxId === null" [ngIfElse]="hasPreoutput">
|
|
|
|
<i class="arrow grey"></i>
|
|
|
|
</ng-template>
|
|
|
|
<ng-template #hasPreoutput>
|
|
|
|
<a [routerLink]="['/tx/' | relativeUrl, input.spendingTxId]">
|
|
|
|
<i class="arrow red"></i>
|
|
|
|
</a>
|
|
|
|
</ng-template>
|
|
|
|
</td>
|
|
|
|
<td>
|
2020-07-13 21:46:25 +07:00
|
|
|
<a [routerLink]="['/address/' | relativeUrl, 'B' + input.address]" title="B{{ input.address }}">
|
2020-07-03 23:45:19 +07:00
|
|
|
<span class="d-block d-lg-none">B{{ input.address | shortenString : 16 }}</span>
|
|
|
|
<span class="d-none d-lg-block">B{{ input.address | shortenString : 35 }}</span>
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
<td class="text-right nowrap">
|
2020-07-14 21:26:02 +07:00
|
|
|
<app-bsq-amount [bsq]="input.bsqAmount"></app-bsq-amount>
|
2020-07-03 23:45:19 +07:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</ng-template>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<div class="w-100 d-block d-md-none"></div>
|
|
|
|
<div class="col mobile-bottomcol">
|
|
|
|
<table class="table table-borderless smaller-text table-xs" style="margin: 0;">
|
|
|
|
<tbody>
|
|
|
|
<ng-template ngFor let-output [ngForOf]="tx.outputs" [ngForTrackBy]="trackByIndexFn">
|
|
|
|
<tr *ngIf="output.isVerified && output.opReturn === undefined">
|
|
|
|
<td>
|
2020-07-13 21:46:25 +07:00
|
|
|
<a [routerLink]="['/address/' | relativeUrl, 'B' + output.address]" title="B{{ output.address }}">
|
2020-07-03 23:45:19 +07:00
|
|
|
<span class="d-block d-lg-none">B{{ output.address | shortenString : 16 }}</span>
|
|
|
|
<span class="d-none d-lg-block">B{{ output.address | shortenString : 35 }}</span>
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
<td class="text-right nowrap">
|
2020-07-14 21:26:02 +07:00
|
|
|
<app-bsq-amount [bsq]="output.bsqAmount"></app-bsq-amount>
|
2020-07-03 23:45:19 +07:00
|
|
|
</td>
|
|
|
|
<td class="pl-1 arrow-td">
|
|
|
|
<i *ngIf="!output.spentInfo; else spent" class="arrow green"></i>
|
|
|
|
<ng-template #spent>
|
|
|
|
<a [routerLink]="['/tx/' | relativeUrl, output.spentInfo.txId]"><i class="arrow red"></i></a>
|
|
|
|
</ng-template>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</ng-template>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2020-07-14 21:26:02 +07:00
|
|
|
<div>
|
|
|
|
<div class="float-left mt-2-5" *ngIf="showConfirmations && tx.burntFee">
|
|
|
|
Fee: {{ tx.burntFee / 100 | number: '1.2-2' }} BSQ (<app-bsq-amount [bsq]="tx.burntFee" [forceFiat]="true" [green]="true"></app-bsq-amount>)
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="float-right">
|
|
|
|
<span *ngIf="showConfirmations && latestBlock$ | async as latestBlock">
|
|
|
|
<button type="button" class="btn btn-sm btn-success mt-2">{{ latestBlock.height - tx.blockHeight + 1 }} confirmation<ng-container *ngIf="latestBlock.height - tx.blockHeight + 1 > 1">s</ng-container></button>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
<button type="button" class="btn btn-sm btn-primary mt-2" (click)="switchCurrency()">
|
|
|
|
<app-bsq-amount [bsq]="totalOutput"></app-bsq-amount>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
</div>
|
|
|
|
|
2020-07-03 23:45:19 +07:00
|
|
|
</div>
|