| 
									
										
										
										
											2020-07-03 23:45:19 +07:00
										 |  |  | <div class="container-xl"> | 
					
						
							| 
									
										
										
										
											2020-07-13 23:22:24 +07:00
										 |  |  |   <h1 style="float: left;">Transactions</h1> | 
					
						
							| 
									
										
										
										
											2020-07-03 23:45:19 +07:00
										 |  |  |   <br> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   <div class="clearfix"></div> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-07-16 14:36:02 +07:00
										 |  |  |     <table class="table table-borderless table-striped"> | 
					
						
							|  |  |  |       <thead> | 
					
						
							| 
									
										
										
										
											2020-07-18 11:04:04 +07:00
										 |  |  |         <th style="width: 20%;">Transaction</th> | 
					
						
							| 
									
										
										
										
											2020-07-19 13:46:30 +07:00
										 |  |  |         <th class="d-none d-sm-block" style="width: 20%;">Type</th> | 
					
						
							| 
									
										
										
										
											2020-07-18 11:04:04 +07:00
										 |  |  |         <th style="width: 20%;">Amount</th> | 
					
						
							|  |  |  |         <th style="width: 20%;">Confirmed</th> | 
					
						
							|  |  |  |         <th class="d-none d-md-block" style="width: 20%;">Height</th> | 
					
						
							| 
									
										
										
										
											2020-07-16 14:36:02 +07:00
										 |  |  |       </thead> | 
					
						
							|  |  |  |       <tbody *ngIf="!isLoading; else loadingTmpl"> | 
					
						
							|  |  |  |         <tr *ngFor="let tx of transactions; trackBy: trackByFn"> | 
					
						
							| 
									
										
										
										
											2020-07-18 11:04:04 +07:00
										 |  |  |           <td><a [routerLink]="['/tx/' | relativeUrl, tx.id]" [state]="{ data: tx }">{{ tx.id | slice : 0 : 8 }}</a></td> | 
					
						
							| 
									
										
										
										
											2020-07-19 13:46:30 +07:00
										 |  |  |           <td class="d-none d-md-block"> | 
					
						
							| 
									
										
										
										
											2020-07-18 11:04:04 +07:00
										 |  |  |             <app-bisq-icon class="mr-1" [txType]="tx.txType"></app-bisq-icon> | 
					
						
							|  |  |  |             <span class="d-none d-md-inline"> {{ tx.txTypeDisplayString }}</span> | 
					
						
							|  |  |  |           </td> | 
					
						
							| 
									
										
										
										
											2020-07-16 14:36:02 +07:00
										 |  |  |           <td> | 
					
						
							| 
									
										
										
										
											2020-07-19 13:46:30 +07:00
										 |  |  |             <app-bisq-icon class="d-inline d-sm-none mr-1" [txType]="tx.txType"></app-bisq-icon> | 
					
						
							| 
									
										
										
										
											2020-07-16 14:36:02 +07:00
										 |  |  |             <ng-template [ngIf]="tx.txType === 'PAY_TRADE_FEE'" [ngIfElse]="defaultTxType"> | 
					
						
							| 
									
										
										
										
											2020-07-18 11:04:04 +07:00
										 |  |  |               {{ tx.burntFee / 100 | number: '1.2-2' }}<span class="d-none d-md-inline"> BSQ</span> | 
					
						
							| 
									
										
										
										
											2020-07-16 14:36:02 +07:00
										 |  |  |             </ng-template> | 
					
						
							|  |  |  |             <ng-template #defaultTxType> | 
					
						
							| 
									
										
										
										
											2020-07-18 11:04:04 +07:00
										 |  |  |               {{ calculateTotalOutput(tx.outputs) / 100 | number: '1.2-2' }}<span class="d-none d-md-inline"> BSQ</span> | 
					
						
							| 
									
										
										
										
											2020-07-16 14:36:02 +07:00
										 |  |  |             </ng-template> | 
					
						
							|  |  |  |           </td> | 
					
						
							| 
									
										
										
										
											2020-07-18 11:04:04 +07:00
										 |  |  |           <td><app-time-since [time]="tx.time / 1000" [fastRender]="true"></app-time-since> ago</td> | 
					
						
							| 
									
										
										
										
											2020-07-19 15:36:58 +07:00
										 |  |  |           <td class="d-none d-md-block"><a [routerLink]="['/block/' | relativeUrl, tx.blockHash]" [state]="{ data: { blockHeight: tx.blockHeight } }">{{ tx.blockHeight }}</a></td> | 
					
						
							| 
									
										
										
										
											2020-07-16 14:36:02 +07:00
										 |  |  |         </tr>  | 
					
						
							|  |  |  |       </tbody> | 
					
						
							|  |  |  |     </table> | 
					
						
							| 
									
										
										
										
											2020-07-03 23:45:19 +07:00
										 |  |  | 
 | 
					
						
							|  |  |  |   <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> | 
					
						
							| 
									
										
										
										
											2020-07-03 23:45:19 +07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-07-15 13:10:13 +07:00
										 |  |  | </div> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <ng-template #loadingTmpl> | 
					
						
							|  |  |  |   <tr *ngFor="let i of loadingItems"> | 
					
						
							| 
									
										
										
										
											2020-07-18 11:04:04 +07:00
										 |  |  |     <td *ngFor="let j of [1, 2, 3, 4, 5]"><span class="skeleton-loader"></span></td> | 
					
						
							| 
									
										
										
										
											2020-07-15 13:10:13 +07:00
										 |  |  |   </tr> | 
					
						
							|  |  |  | </ng-template> |