diff --git a/dashboard/static/dashboard.html b/dashboard/static/dashboard.html index 570557a..3b7f78f 100644 --- a/dashboard/static/dashboard.html +++ b/dashboard/static/dashboard.html @@ -56,7 +56,6 @@ .spill.hang{background:#0d2137;color:#7dd3fc;border-color:#075985} .brand{display:flex;align-items:center;gap:14px} .brand .logo{height:46px;width:auto;display:block} - .self-row td{background:#1a2744;font-style:italic} @@ -146,7 +145,7 @@ function renderSystems(){ h += '
' + '

'+esc(n)+'' + ' '+esc(mode)+'' - + '

' + + '  Radio ID: '+esc(s.RADIO_ID)+' | '+esc(s.IP||'0.0.0.0')+':'+esc(s.PORT)+'' + '
'; // Peer table — identical columns for both MASTER and PEER mode systems @@ -159,17 +158,12 @@ function renderSystems(){ + '
'+sysTsPill(n,1)+sysTsPill(n,2)+'
' + ''; - { + if(!totalCount){ + h += '
No peers
'; + } else { h += ''; - // Local system (self) always appears first so all columns stay aligned. - h += '' - + '' - + '' - + '' - + ''; - - // Inject master as next row when we are a PEER — the master does not + // Inject master as first row when we are a PEER — the master does not // include itself in the peer list it sends us, so we synthesise the row. if(ms){ const mrid = ms.RADIO_ID != null ? ms.RADIO_ID : '—';
Radio IDAddressStatus
'+esc(s.RADIO_ID)+' self'+esc(s.IP||'0.0.0.0')+':'+esc(s.PORT)+'Active