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}}