mempool/frontend/src/app/bisq/bisq-transactions/bisq-transactions.component.html

103 lines
3.8 KiB
HTML
Raw Normal View History

<div class="container-xl">
<h1 style="float: left;">Transactions</h1>
<div ngbDropdown class="d-block float-right">
<button class="btn btn-primary" id="dropdownForm1" ngbDropdownToggle>Filter</button>
<div ngbDropdownMenu aria-labelledby="dropdownForm1">
<form [formGroup]="radioGroupForm">
<label>
2020-07-24 18:52:55 +07:00
<input type="checkbox" formControlName="ASSET_LISTING_FEE"> Asset listing fee
</label>
<br>
<label>
2020-07-24 18:52:55 +07:00
<input type="checkbox" formControlName="BLIND_VOTE"> Blind vote
</label>
<br>
<label>
2020-07-24 18:52:55 +07:00
<input type="checkbox" formControlName="COMPENSATION_REQUEST"> Compensation request
</label>
<br>
<label>
2020-07-24 18:52:55 +07:00
<input type="checkbox" formControlName="GENESIS"> Genesis
</label>
<br>
<label>
2020-07-24 18:52:55 +07:00
<input type="checkbox" formControlName="LOCKUP"> Lockup
</label>
<br>
<label>
2020-07-24 18:52:55 +07:00
<input type="checkbox" formControlName="PAY_TRADE_FEE"> Pay trade fee
</label>
<br>
<label>
2020-07-24 18:52:55 +07:00
<input type="checkbox" formControlName="PROOF_OF_BURN"> Proof of burn
</label>
<br>
<label>
2020-07-24 18:52:55 +07:00
<input type="checkbox" formControlName="PROPOSAL"> Proposal
</label>
<br>
<label>
2020-07-24 18:52:55 +07:00
<input type="checkbox" formControlName="REIMBURSEMENT_REQUEST"> Reimbursement request
</label>
<br>
<label>
2020-07-24 18:52:55 +07:00
<input type="checkbox" formControlName="TRANSFER_BSQ"> Transfer BSQ
</label>
<br>
<label>
2020-07-24 18:52:55 +07:00
<input type="checkbox" formControlName="UNLOCK"> Unlock
</label>
<br>
<label>
2020-07-24 18:52:55 +07:00
<input type="checkbox" formControlName="VOTE_REVEAL"> Vote reveal
</label>
</form>
</div>
</div>
<br>
<div class="clearfix"></div>
<table class="table table-borderless table-striped">
<thead>
<th style="width: 20%;">Transaction</th>
<th class="d-none d-md-block" style="width: 20%;">Type</th>
<th style="width: 20%;">Amount</th>
<th style="width: 20%;">Confirmed</th>
<th class="d-none d-md-block" style="width: 20%;">Height</th>
</thead>
<tbody *ngIf="!isLoading; else loadingTmpl">
<tr *ngFor="let tx of transactions; trackBy: trackByFn">
<td><a [routerLink]="['/tx/' | relativeUrl, tx.id]" [state]="{ data: tx }">{{ tx.id | slice : 0 : 8 }}</a></td>
<td class="d-none d-md-block">
<app-bisq-icon class="mr-1" [txType]="tx.txType"></app-bisq-icon>
<span class="d-none d-md-inline"> {{ tx.txTypeDisplayString }}</span>
</td>
<td>
<app-bisq-icon class="d-inline d-md-none mr-1" [txType]="tx.txType"></app-bisq-icon>
<ng-template [ngIf]="tx.txType === 'PAY_TRADE_FEE' || tx.txType === 'ASSET_LISTING_FEE'" [ngIfElse]="defaultTxType">
{{ tx.burntFee / 100 | number: '1.2-2' }}<span class="d-none d-md-inline"> BSQ</span>
</ng-template>
<ng-template #defaultTxType>
{{ calculateTotalOutput(tx.outputs) / 100 | number: '1.2-2' }}<span class="d-none d-md-inline"> BSQ</span>
</ng-template>
</td>
<td><app-time-since [time]="tx.time / 1000" [fastRender]="true"></app-time-since> ago</td>
<td class="d-none d-md-block"><a [routerLink]="['/block/' | relativeUrl, tx.blockHash]" [state]="{ data: { blockHeight: tx.blockHeight } }">{{ tx.blockHeight }}</a></td>
</tr>
</tbody>
</table>
<br>
2020-07-19 13:46:30 +07:00
<ngb-pagination [size]="paginationSize" [collectionSize]="totalCount" [rotate]="true" [pageSize]="itemsPerPage" [(page)]="page" (pageChange)="pageChange(page)" [maxSize]="paginationMaxSize" [boundaryLinks]="true"></ngb-pagination>
</div>
<ng-template #loadingTmpl>
<tr *ngFor="let i of loadingItems">
<td *ngFor="let j of [1, 2, 3, 4, 5]"><span class="skeleton-loader"></span></td>
</tr>
</ng-template>