| 
									
										
										
										
											2022-05-01 03:01:27 +04:00
										 |  |  | <div class="container-xl" *ngIf="(channel$ | async) as channel"> | 
					
						
							| 
									
										
										
										
											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-05-01 03:01:27 +04:00
										 |  |  |   </div> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   <div class="clearfix"></div> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     <div class="box"> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |       <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> | 
					
						
							|  |  |  |                 <td><app-time-since [dateString]="channel.created"></app-time-since></td> | 
					
						
							|  |  |  |               </tr> | 
					
						
							| 
									
										
										
										
											2022-05-01 03:01:27 +04:00
										 |  |  |               <tr> | 
					
						
							|  |  |  |                 <td i18n="address.total-sent">Last update</td> | 
					
						
							| 
									
										
										
										
											2022-05-06 16:31:25 +04:00
										 |  |  |                 <td><app-time-since [dateString]="channel.updated_at"></app-time-since></td> | 
					
						
							| 
									
										
										
										
											2022-05-01 03:01:27 +04:00
										 |  |  |               </tr> | 
					
						
							|  |  |  |               <tr> | 
					
						
							|  |  |  |                 <td i18n="address.total-sent">Transaction ID</td> | 
					
						
							|  |  |  |                 <td> | 
					
						
							|  |  |  |                   <a [routerLink]="['/tx' | relativeUrl, channel.transaction_id + ':' + channel.transaction_vout]" > | 
					
						
							|  |  |  |                     <span>{{ channel.transaction_id | shortenString : 10 }}</span> | 
					
						
							|  |  |  |                   </a> | 
					
						
							|  |  |  |                   <app-clipboard [text]="channel.transaction_id"></app-clipboard> | 
					
						
							|  |  |  |                 </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 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-05-01 03:01:27 +04:00
										 |  |  |     </div> | 
					
						
							| 
									
										
										
										
											2022-05-01 15:35:28 +04:00
										 |  |  |   </div> | 
					
						
							| 
									
										
										
										
											2022-05-01 03:01:27 +04:00
										 |  |  | 
 | 
					
						
							|  |  |  | </div> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <br> |