diff options
| author | tv <tv@krebsco.de> | 2026-10-30 19:48:08 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-30 19:48:08 +0100 |
| commit | 0a992f932f7dd5fa8c6d245c7a1a73a2a91bdcb3 (patch) | |
| tree | 0a00b1aa6b2bdc021a0767b420c204b446ceb69e | |
| parent | 58f04105de0e0ac0f2a97696151c7e727f5d6d29 (diff) | |
dashboard: show peer ID in title
| -rw-r--r-- | src/api/dashboard/dashboard.html | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/api/dashboard/dashboard.html b/src/api/dashboard/dashboard.html index d0d637d..4f77dde 100644 --- a/src/api/dashboard/dashboard.html +++ b/src/api/dashboard/dashboard.html @@ -54,6 +54,7 @@ section h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0 0 8px; flex: none; } section h2 .what { text-transform: none; letter-spacing: 0; color: var(--fg); } + section h2 .what .id { color: var(--muted); font-weight: normal; word-break: break-all; } #map { grid-area: map; } #peers-box { grid-area: peers; } #figures-box { grid-area: figures; } @@ -293,8 +294,10 @@ function renderStats() { what.textContent = name(state.node.id) + " (this node)"; shown = [tree("stats", state.stats, "stats")]; } else { - what.textContent = name(focused); - what.title = focused; + // Its alias (if it has one) and its node ID, in full. + const alias = (state.graph.members[focused] || {}).alias || + (state.peers.peers[focused] || {}).alias; + what.replaceChildren(...(alias ? [alias, " "] : []), el("span", { class: "id" }, focused)); const peer = state.peers.peers[focused]; const report = state.graph.measured[focused]; shown = []; |
