From 67ec3faa543072cf7a12c4775a34dcc9b4d7aef2 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Sun, 14 Jun 2026 22:04:06 +0200 Subject: [PATCH] webui: relocate and reorder some menu items External services like the mdns-browser and the web console belong in the User Menu next to the bundled user guide. They all open another browser tab and provide another service. Place common tasks close to each other and high up: Interface overview, routing table, and firewall. Feels slightly better imo. Signed-off-by: Joachim Wiberg --- src/webui/templates/layouts/base.html | 17 ++++++- src/webui/templates/layouts/sidebar.html | 60 ++++++++---------------- 2 files changed, 36 insertions(+), 41 deletions(-) diff --git a/src/webui/templates/layouts/base.html b/src/webui/templates/layouts/base.html index 2f960a9c..4eb345c9 100644 --- a/src/webui/templates/layouts/base.html +++ b/src/webui/templates/layouts/base.html @@ -92,13 +92,28 @@ Off {{template "icon-check"}} - {{if .Capabilities.Has "docs"}} + {{if or (.Capabilities.Has "docs") (.Capabilities.Has "netbrowse") (.Capabilities.Has "console")}} + {{if .Capabilities.Has "docs"}} {{template "icon-book"}} User Guide {{end}} + {{if .Capabilities.Has "netbrowse"}} + + {{template "icon-radar"}} + Network Browser + + {{end}} + {{if .Capabilities.Has "console"}} + {{/* href filled in by JS from the current hostname (ttyd on :7681). */}} + + {{template "icon-terminal"}} + Console + + {{end}} + {{end}}
diff --git a/src/webui/templates/layouts/sidebar.html b/src/webui/templates/layouts/sidebar.html index eb3a812c..62adddf0 100644 --- a/src/webui/templates/layouts/sidebar.html +++ b/src/webui/templates/layouts/sidebar.html @@ -73,6 +73,26 @@ Interfaces +
  • + + + Routes + +
  • +
  • + + + Firewall + +
  • - {{if .Capabilities.Has "netbrowse"}} - {{/* External link to the mDNS network browser at network.local - (new tab); not an htmx nav. */}} -
  • - - - Network Browser - -
  • - {{end}}
  • -
  • - - - Routes - -
  • -
  • - - - Firewall - -
  • {{if and .Capabilities (.Capabilities.Has "wifi")}}
  • - {{if .Capabilities.Has "console"}} - {{/* External link to ttyd on :7681 (new tab); not an htmx nav. - href is filled in by JS from the current hostname. */}} -
  • - - - Console - -
  • - {{end}}