Show that we don't know where a node is because it's running on tor

This commit is contained in:
nymkappa 2022-09-06 10:51:14 +02:00
parent 9047cb5998
commit efb18c7548
No known key found for this signature in database
GPG Key ID: E155910B16E8BD04

View File

@ -44,11 +44,14 @@
<app-fiat [value]="node.avgCapacity" digitsInfo="1.0-0"></app-fiat> <app-fiat [value]="node.avgCapacity" digitsInfo="1.0-0"></app-fiat>
</td> </td>
</tr> </tr>
<tr *ngIf="node.geolocation"> <tr>
<td i18n="location" class="text-truncate">Location</td> <td i18n="location" class="text-truncate">Location</td>
<td> <td *ngIf="node.geolocation">
<app-geolocation [data]="node.geolocation" [type]="'node'"></app-geolocation> <app-geolocation [data]="node.geolocation" [type]="'node'"></app-geolocation>
</td> </td>
<td *ngIf="!node.geolocation">
<span i18n="unknown">Unknown</span>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
@ -75,13 +78,16 @@
<div [ngStyle]="{'color': node.color}">{{ node.color }}</div> <div [ngStyle]="{'color': node.color}">{{ node.color }}</div>
</td> </td>
</tr> </tr>
<tr *ngIf="node.country"> <tr>
<td i18n="isp" class="text-truncate label">ISP</td> <td i18n="isp" class="text-truncate label">ISP</td>
<td> <td *ngIf="node.as_number">
<a class="d-block text-wrap" [routerLink]="['/lightning/nodes/isp' | relativeUrl, node.as_number]"> <a class="d-block text-wrap" [routerLink]="['/lightning/nodes/isp' | relativeUrl, node.as_number]">
{{ node.as_organization }} [ASN {{node.as_number}}] {{ node.as_organization }} [ASN {{node.as_number}}]
</a> </a>
</td> </td>
<td *ngIf="!node.as_number">
<span class="badge badge-success" placement="bottom" i18n="tor">Running on Tor</span>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>