mempool/frontend/src/app/components/server-health/server-health.component.html

29 lines
1.2 KiB
HTML
Raw Normal View History

<div class="tomahawk container-xl dashboard-container">
<div class="links">
<span>Status</span>
<a [routerLink]='"/network"'>Live</a>
</div>
<h1 class="dashboard-title">Node Status</h1>
2024-03-03 20:31:02 +00:00
<ng-container *ngIf="(hosts$ | async) as hosts">
<div class="status-panel">
<table class="status-table table table-borderless table-striped" *ngIf="(tip$ | async) as tip">
<tbody>
<tr>
<th class="active"></th>
<th class="host">Host</th>
<th class="rtt">RTT</th>
<th class="height">Height</th>
</tr>
<tr *ngFor="let host of hosts;">
2024-03-03 20:31:02 +00:00
<td class="active"><span *ngIf="host.active">⭐️</span></td>
<td class="host">{{ host.host }}</td>
<td class="rtt">{{ host.rtt | number : '1.0-0' }} {{ host.rtt == null ? '' : 'ms'}} {{ !host.checked ? '⏳' : (host.unreachable ? '🔥' : '✅') }}</td>
<td class="height">{{ host.latestHeight }} {{ !host.checked ? '⏳' : (host.outOfSync ? '🚫' : (host.latestHeight && host.latestHeight < tip ? '🟧' : '')) }}</td>
</tr>
</tbody>
</table>
</div>
</ng-container>
</div>