| 
									
										
										
										
											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> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   <table class="table table-borderless table-striped"> | 
					
						
							|  |  |  |     <thead> | 
					
						
							| 
									
										
										
										
											2020-07-15 13:10:13 +07:00
										 |  |  |       <th style="width: 18%;">Transaction</th> | 
					
						
							|  |  |  |       <th style="width: 15%;">Type</th> | 
					
						
							|  |  |  |       <th style="width: 15%;">Total Sent (BSQ)</th> | 
					
						
							|  |  |  |       <th style="width: 12%;">Outputs</th> | 
					
						
							|  |  |  |       <th style="width: 15%;">Block Height</th> | 
					
						
							|  |  |  |       <th style="width: 15%;">Block Time</th> | 
					
						
							| 
									
										
										
										
											2020-07-03 23:45:19 +07:00
										 |  |  |     </thead> | 
					
						
							| 
									
										
										
										
											2020-07-15 13:10:13 +07:00
										 |  |  |     <tbody *ngIf="!isLoading; else loadingTmpl"> | 
					
						
							| 
									
										
										
										
											2020-07-13 15:16:12 +07:00
										 |  |  |       <tr *ngFor="let tx of transactions; trackBy: trackByFn"> | 
					
						
							| 
									
										
										
										
											2020-07-03 23:45:19 +07:00
										 |  |  |         <td><a [routerLink]="['/tx/' | relativeUrl, tx.id]" [state]="{ bsqTx: tx }">{{ tx.id | shortenString : 16 }}</a></td> | 
					
						
							|  |  |  |         <td><app-bisq-icon class="mr-1" [txType]="tx.txType"></app-bisq-icon> {{ tx.txTypeDisplayString }}</td> | 
					
						
							| 
									
										
										
										
											2020-07-15 13:10:13 +07:00
										 |  |  |         <td> | 
					
						
							|  |  |  |           <ng-template [ngIf]="tx.txType === 'PAY_TRADE_FEE'" [ngIfElse]="defaultTxType"> | 
					
						
							|  |  |  |             {{ tx.burntFee / 100 | number: '1.2-2' }} | 
					
						
							|  |  |  |           </ng-template> | 
					
						
							|  |  |  |           <ng-template #defaultTxType> | 
					
						
							|  |  |  |             {{ calculateTotalOutput(tx.outputs) / 100 | number: '1.2-2' }} | 
					
						
							|  |  |  |           </ng-template> | 
					
						
							|  |  |  |         </td> | 
					
						
							| 
									
										
										
										
											2020-07-03 23:45:19 +07:00
										 |  |  |         <td>{{ tx.outputs.length }}</td> | 
					
						
							|  |  |  |         <td><a [routerLink]="['/block/' | relativeUrl, tx.blockHash]">{{ tx.blockHeight }}</a></td> | 
					
						
							|  |  |  |         <td>{{ tx.time | date:'yyyy-MM-dd HH:mm' }}</td> | 
					
						
							|  |  |  |       </tr>  | 
					
						
							|  |  |  |     </tbody> | 
					
						
							|  |  |  |   </table> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   <br> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   <ngb-pagination [collectionSize]="totalCount" [rotate]="true" [pageSize]="itemsPerPage" [(page)]="page" (pageChange)="pageChange(page)" [maxSize]="5" [boundaryLinks]="true"></ngb-pagination> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-07-15 13:10:13 +07:00
										 |  |  | </div> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <ng-template #loadingTmpl> | 
					
						
							|  |  |  |   <tr *ngFor="let i of loadingItems"> | 
					
						
							|  |  |  |     <td *ngFor="let j of [1, 2, 3, 4, 5, 6]"><span class="skeleton-loader"></span></td> | 
					
						
							|  |  |  |   </tr> | 
					
						
							|  |  |  | </ng-template> |