| 
									
										
										
										
											2022-08-29 14:06:50 +02:00
										 |  |  | <div class="container-xl" *ngIf="(channel$ | async) as channel; else skeletonLoader"> | 
					
						
							| 
									
										
										
										
											2022-08-22 09:17:23 +02:00
										 |  |  |   <h5 class="mb-0" style="color: #ffffff66" i18n="lightning.channel">Lightning channel</h5> | 
					
						
							| 
									
										
										
										
											2022-05-15 19:22:14 +04:00
										 |  |  |   <div class="title-container"> | 
					
						
							|  |  |  |     <h1 class="mb-0">{{ channel.short_id }}</h1> | 
					
						
							|  |  |  |     <span class="tx-link"> | 
					
						
							|  |  |  |       <a [routerLink]="['/lightning/channel' | relativeUrl, channel.id]">{{ channel.id }}</a> | 
					
						
							|  |  |  |       <app-clipboard [text]="channel.id"></app-clipboard> | 
					
						
							|  |  |  |     </span> | 
					
						
							|  |  |  |   </div> | 
					
						
							|  |  |  |   <div class="badges mb-2"> | 
					
						
							|  |  |  |     <span class="badge rounded-pill badge-secondary" *ngIf="channel.status === 0">Inactive</span> | 
					
						
							|  |  |  |     <span class="badge rounded-pill badge-success" *ngIf="channel.status === 1">Active</span> | 
					
						
							|  |  |  |     <span class="badge rounded-pill badge-danger" *ngIf="channel.status === 2">Closed</span> | 
					
						
							| 
									
										
										
										
											2022-08-27 16:34:56 +02:00
										 |  |  |     <app-closing-type *ngIf="channel.closing_reason" [type]="channel.closing_reason"></app-closing-type> | 
					
						
							| 
									
										
										
										
											2022-05-01 03:01:27 +04:00
										 |  |  |   </div> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   <div class="clearfix"></div> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-08-20 14:24:26 +04:00
										 |  |  |   <app-nodes-channels-map *ngIf="!error && (channelGeo$ | async) as channelGeo" [style]="'channelpage'" [channel]="channelGeo"></app-nodes-channels-map> | 
					
						
							| 
									
										
										
										
											2022-08-10 16:00:12 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  |   <div class="box"> | 
					
						
							| 
									
										
										
										
											2022-05-01 03:01:27 +04:00
										 |  |  | 
 | 
					
						
							|  |  |  |       <div class="row"> | 
					
						
							|  |  |  |         <div class="col-md"> | 
					
						
							|  |  |  |           <table class="table table-borderless table-striped"> | 
					
						
							|  |  |  |             <tbody> | 
					
						
							| 
									
										
										
										
											2022-05-06 16:31:25 +04:00
										 |  |  |               <tr> | 
					
						
							|  |  |  |                 <td i18n="address.total-sent">Created</td> | 
					
						
							| 
									
										
										
										
											2022-07-01 18:06:48 +02:00
										 |  |  |                 <td><app-timestamp [dateString]="channel.created"></app-timestamp></td> | 
					
						
							| 
									
										
										
										
											2022-05-06 16:31:25 +04:00
										 |  |  |               </tr> | 
					
						
							| 
									
										
										
										
											2022-05-01 03:01:27 +04:00
										 |  |  |               <tr> | 
					
						
							|  |  |  |                 <td i18n="address.total-sent">Last update</td> | 
					
						
							| 
									
										
										
										
											2022-07-01 18:06:48 +02:00
										 |  |  |                 <td><app-timestamp [dateString]="channel.updated_at"></app-timestamp></td> | 
					
						
							| 
									
										
										
										
											2022-05-01 03:01:27 +04:00
										 |  |  |               </tr> | 
					
						
							|  |  |  |             </tbody> | 
					
						
							|  |  |  |           </table> | 
					
						
							|  |  |  |         </div> | 
					
						
							|  |  |  |         <div class="w-100 d-block d-md-none"></div> | 
					
						
							|  |  |  |         <div class="col-md"> | 
					
						
							|  |  |  |           <table class="table table-borderless table-striped"> | 
					
						
							|  |  |  |             <tbody> | 
					
						
							|  |  |  |               <tr> | 
					
						
							|  |  |  |                 <td i18n="address.total-received">Capacity</td> | 
					
						
							| 
									
										
										
										
											2022-05-15 19:22:14 +04:00
										 |  |  |                 <td><app-sats [satoshis]="channel.capacity"></app-sats><app-fiat [value]="channel.capacity" digitsInfo="1.0-0"></app-fiat></td> | 
					
						
							| 
									
										
										
										
											2022-05-01 03:01:27 +04:00
										 |  |  |               </tr> | 
					
						
							|  |  |  |             </tbody> | 
					
						
							|  |  |  |           </table> | 
					
						
							|  |  |  |         </div> | 
					
						
							|  |  |  |       </div> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     </div> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     <br> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-05-01 15:35:28 +04:00
										 |  |  |     <div class="row row-cols-1 row-cols-md-2"> | 
					
						
							|  |  |  |       <div class="col"> | 
					
						
							| 
									
										
										
										
											2022-05-15 19:22:14 +04:00
										 |  |  |         <app-channel-box [channel]="channel.node_left"></app-channel-box> | 
					
						
							| 
									
										
										
										
											2022-05-01 03:01:27 +04:00
										 |  |  |       </div> | 
					
						
							| 
									
										
										
										
											2022-05-01 15:35:28 +04:00
										 |  |  |       <div class="col"> | 
					
						
							| 
									
										
										
										
											2022-05-15 19:22:14 +04:00
										 |  |  |         <app-channel-box [channel]="channel.node_right"></app-channel-box> | 
					
						
							| 
									
										
										
										
											2022-08-20 14:24:26 +04:00
										 |  |  |       </div> | 
					
						
							| 
									
										
										
										
											2022-05-01 03:01:27 +04:00
										 |  |  |     </div> | 
					
						
							| 
									
										
										
										
											2022-08-20 14:24:26 +04:00
										 |  |  |      | 
					
						
							|  |  |  |     <br> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     <ng-container *ngIf="transactions$ | async as transactions"> | 
					
						
							|  |  |  |       <ng-template [ngIf]="transactions[0]"> | 
					
						
							|  |  |  |         <h3>Opening transaction</h3> | 
					
						
							| 
									
										
										
										
											2022-08-27 16:00:58 +02:00
										 |  |  |         <app-transactions-list [transactions]="[transactions[0]]" [showConfirmations]="true" [rowLimit]="5"></app-transactions-list> | 
					
						
							| 
									
										
										
										
											2022-08-20 14:24:26 +04:00
										 |  |  |       </ng-template> | 
					
						
							|  |  |  |       <ng-template [ngIf]="transactions[1]"> | 
					
						
							|  |  |  |         <div class="closing-header"> | 
					
						
							|  |  |  |           <h3 style="margin: 0;">Closing transaction</h3>  <app-closing-type [type]="channel.closing_reason"></app-closing-type> | 
					
						
							|  |  |  |         </div> | 
					
						
							| 
									
										
										
										
											2022-08-27 16:00:58 +02:00
										 |  |  |         <app-transactions-list [transactions]="[transactions[1]]" [showConfirmations]="true" [rowLimit]="5"></app-transactions-list> | 
					
						
							| 
									
										
										
										
											2022-08-20 14:24:26 +04:00
										 |  |  |       </ng-template> | 
					
						
							|  |  |  |     </ng-container> | 
					
						
							| 
									
										
										
										
											2022-05-01 03:01:27 +04:00
										 |  |  | 
 | 
					
						
							|  |  |  | </div> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <br> | 
					
						
							| 
									
										
										
										
											2022-06-29 23:06:13 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | <ng-template [ngIf]="error"> | 
					
						
							|  |  |  |   <div class="text-center"> | 
					
						
							|  |  |  |     <span i18n="error.general-loading-data">Error loading data.</span> | 
					
						
							|  |  |  |     <br><br> | 
					
						
							|  |  |  |     <i>{{ error.status }}: {{ error.error }}</i> | 
					
						
							|  |  |  |   </div> | 
					
						
							| 
									
										
										
										
											2022-08-29 14:06:50 +02:00
										 |  |  | </ng-template> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <ng-template #skeletonLoader> | 
					
						
							|  |  |  |   <div class="container-xl"> | 
					
						
							|  |  |  |     <h5 class="mb-0" style="color: #ffffff66" i18n="lightning.channel">Lightning channel</h5> | 
					
						
							|  |  |  |     <div class="title-container"> | 
					
						
							|  |  |  |       <h1 class="mb-0"><span class="skeleton-loader" style="width: 275px; height: 25px;"></span></h1> | 
					
						
							|  |  |  |       <span class="tx-link"> | 
					
						
							|  |  |  |         <span class="skeleton-loader" style="margin-bottom: 5px; width: 210px;"></span> | 
					
						
							|  |  |  |       </span> | 
					
						
							|  |  |  |     </div> | 
					
						
							|  |  |  |     <div class="badges mb-2"> | 
					
						
							|  |  |  |       <span class="skeleton-loader" style="width: 50px; height: 22px; margin-top: 5px;"></span> | 
					
						
							|  |  |  |     </div> | 
					
						
							|  |  |  |    | 
					
						
							|  |  |  |     <div class="clearfix"></div> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-08-30 10:42:50 +02:00
										 |  |  |     <div style="height: 413px;  padding: 15px;"> | 
					
						
							|  |  |  |       <div class="text-center loading-spinner"> | 
					
						
							|  |  |  |         <div class="spinner-border text-light"></div> | 
					
						
							|  |  |  |       </div> | 
					
						
							|  |  |  |     </div> | 
					
						
							| 
									
										
										
										
											2022-08-29 14:06:50 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  |     <br> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     <div class="box"> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |       <div class="row"> | 
					
						
							|  |  |  |         <div class="col-md"> | 
					
						
							|  |  |  |           <table class="table table-borderless table-striped"> | 
					
						
							|  |  |  |             <tbody> | 
					
						
							|  |  |  |               <tr> | 
					
						
							|  |  |  |                 <td><span class="skeleton-loader"></span></td> | 
					
						
							|  |  |  |                 <td><span class="skeleton-loader"></span></td> | 
					
						
							|  |  |  |               </tr> | 
					
						
							|  |  |  |               <tr> | 
					
						
							|  |  |  |                 <td><span class="skeleton-loader"></span></td> | 
					
						
							|  |  |  |                 <td><span class="skeleton-loader"></span></td> | 
					
						
							|  |  |  |               </tr> | 
					
						
							|  |  |  |             </tbody> | 
					
						
							|  |  |  |           </table> | 
					
						
							|  |  |  |         </div> | 
					
						
							|  |  |  |         <div class="w-100 d-block d-md-none"></div> | 
					
						
							|  |  |  |         <div class="col-md"> | 
					
						
							|  |  |  |           <table class="table table-borderless table-striped"> | 
					
						
							|  |  |  |             <tbody> | 
					
						
							|  |  |  |               <tr> | 
					
						
							|  |  |  |                 <td><span class="skeleton-loader"></span></td> | 
					
						
							|  |  |  |                 <td><span class="skeleton-loader"></span></td> | 
					
						
							|  |  |  |               </tr> | 
					
						
							|  |  |  |             </tbody> | 
					
						
							|  |  |  |           </table> | 
					
						
							|  |  |  |         </div> | 
					
						
							|  |  |  |       </div> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     </div> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   </div> | 
					
						
							| 
									
										
										
										
											2022-06-29 23:06:13 +02:00
										 |  |  | </ng-template> |