Show city, country and AS name in node page when available

This commit is contained in:
nymkappa
2022-07-12 21:07:38 +02:00
parent c6fa8c6172
commit f2983e28a3
2 changed files with 24 additions and 2 deletions

View File

@@ -33,6 +33,13 @@
<app-sats [satoshis]="node.channels_capacity_avg"></app-sats><app-fiat [value]="node.channels_capacity_avg" digitsInfo="1.0-0"></app-fiat>
</td>
</tr>
<tr *ngIf="node.country || node.city">
<td i18n="location">Location</td>
<td>
<span *ngIf="node.country">{{ node.country.en }}</span>
<span *ngIf="node.city"> ({{ node.city.en }})</span>
</td>
</tr>
</tbody>
</table>
</div>
@@ -56,6 +63,12 @@
<td i18n="address.balance">Color</td>
<td><div [ngStyle]="{'color': node.color}">{{ node.color }}</div></td>
</tr>
<tr *ngIf="node.country">
<td i18n="isp">ISP</td>
<td>
{{ node.as_organization }}
</td>
</tr>
</tbody>
</table>
</div>