From 6e30d4f590aa697aa50b2fad4819a2f43e824d82 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Mon, 27 Apr 2026 15:06:28 +0200 Subject: [PATCH] webui: drop wifi status, add 'configure ->' shortcuts Signed-off-by: Joachim Wiberg --- src/webui/static/css/style.css | 1 + src/webui/templates/layouts/sidebar.html | 13 +------------ src/webui/templates/pages/dhcp.html | 8 +++++++- src/webui/templates/pages/lldp.html | 16 ++++++++++++++-- src/webui/templates/pages/mdns.html | 8 +++++++- src/webui/templates/pages/nacm.html | 8 +++++++- src/webui/templates/pages/routing.html | 8 +++++++- src/webui/templates/pages/yang-tree.html | 9 ++++++++- 8 files changed, 52 insertions(+), 19 deletions(-) diff --git a/src/webui/static/css/style.css b/src/webui/static/css/style.css index 79bdf0e0..8a55ed3d 100644 --- a/src/webui/static/css/style.css +++ b/src/webui/static/css/style.css @@ -2644,6 +2644,7 @@ details[open].yt-leaf-item .yt-leaf-name::before { transform: rotate(90deg); } /* Back button in card header when navigated from a parent list */ .card-header { display: flex; align-items: center; gap: 0.5rem; } .yt-back-btn { margin-right: 0.25rem; flex-shrink: 0; } +.card-header-action { margin-left: auto; flex-shrink: 0; white-space: nowrap; } /* Inline list / flat container sections inside a leaf-group card */ diff --git a/src/webui/templates/layouts/sidebar.html b/src/webui/templates/layouts/sidebar.html index a93ec1fa..3186e4c1 100644 --- a/src/webui/templates/layouts/sidebar.html +++ b/src/webui/templates/layouts/sidebar.html @@ -53,18 +53,7 @@ Routing - {{if and .Capabilities (.Capabilities.Has "wifi")}} -
  • - - - WiFi - -
  • - {{end}} + diff --git a/src/webui/templates/pages/dhcp.html b/src/webui/templates/pages/dhcp.html index 33a54122..cbd7037c 100644 --- a/src/webui/templates/pages/dhcp.html +++ b/src/webui/templates/pages/dhcp.html @@ -9,7 +9,13 @@ {{if .DHCP}}
    -
    DHCP Server
    +
    DHCP Server + Configure → +
    {{if .DHCP.Enabled}} diff --git a/src/webui/templates/pages/lldp.html b/src/webui/templates/pages/lldp.html index 2b2b2ca3..d7c80ee4 100644 --- a/src/webui/templates/pages/lldp.html +++ b/src/webui/templates/pages/lldp.html @@ -9,7 +9,13 @@ {{if .Neighbors}}
    -
    LLDP Neighbors
    +
    LLDP Neighbors + Configure → +
    @@ -39,7 +45,13 @@ {{else if not .Error}}
    -
    LLDP Neighbors
    +
    LLDP Neighbors + Configure → +

    No LLDP neighbors discovered.

    {{end}} diff --git a/src/webui/templates/pages/mdns.html b/src/webui/templates/pages/mdns.html index 9a6f2407..c4a5d124 100644 --- a/src/webui/templates/pages/mdns.html +++ b/src/webui/templates/pages/mdns.html @@ -10,7 +10,13 @@
    -
    mDNS Status
    +
    mDNS Status + Configure → +
    diff --git a/src/webui/templates/pages/nacm.html b/src/webui/templates/pages/nacm.html index 482740ef..7c5e386d 100644 --- a/src/webui/templates/pages/nacm.html +++ b/src/webui/templates/pages/nacm.html @@ -11,7 +11,13 @@ {{if not .Error}}
    -
    NACM Settings
    +
    NACM Settings + Configure → +
    mDNS
    diff --git a/src/webui/templates/pages/routing.html b/src/webui/templates/pages/routing.html index 5c570d80..af23a63b 100644 --- a/src/webui/templates/pages/routing.html +++ b/src/webui/templates/pages/routing.html @@ -6,7 +6,13 @@ {{if .Error}}
    {{.Error}}
    {{end}}
    -
    Routing Table
    +
    Routing Table + Configure → +
    {{if .Routes}}
    Enabled{{.Enabled}}
    Default read{{.ReadDefault}}
    diff --git a/src/webui/templates/pages/yang-tree.html b/src/webui/templates/pages/yang-tree.html index aad9a71c..1fa1917f 100644 --- a/src/webui/templates/pages/yang-tree.html +++ b/src/webui/templates/pages/yang-tree.html @@ -37,7 +37,13 @@ {{/* ── Right pane: node detail ──────────────────────────── */}} -
    +
    + {{if not .InitialPath}}

    Select a node to inspect.

    + {{end}}