webui: drop wifi status, add 'configure ->' shortcuts

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2026-06-14 22:07:42 +02:00
parent f9733dc52d
commit 6e30d4f590
8 changed files with 52 additions and 19 deletions
+1
View File
@@ -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 */
+1 -12
View File
@@ -53,18 +53,7 @@
Routing
</a>
</li>
{{if and .Capabilities (.Capabilities.Has "wifi")}}
<li>
<a href="/wifi"
hx-get="/wifi"
hx-target="#content"
hx-push-url="true"
class="nav-link {{if eq .ActivePage "wifi"}}active{{end}}">
<span class="nav-icon" style="--icon: url('/assets/img/icons/wifi.svg')"></span>
WiFi
</a>
</li>
{{end}}
</ul>
<div class="nav-section-label">Security</div>
+7 -1
View File
@@ -9,7 +9,13 @@
{{if .DHCP}}
<section class="info-card">
<div class="card-header">DHCP Server</div>
<div class="card-header">DHCP Server
<a href="/configure/tree?path=/infix-dhcp-server:dhcp-server"
hx-get="/configure/tree?path=/infix-dhcp-server:dhcp-server"
hx-target="#content"
hx-push-url="true"
class="btn btn-sm btn-outline card-header-action">Configure &rarr;</a>
</div>
{{if .DHCP.Enabled}}
<table class="info-table">
<tr>
+14 -2
View File
@@ -9,7 +9,13 @@
{{if .Neighbors}}
<section class="info-card">
<div class="card-header">LLDP Neighbors</div>
<div class="card-header">LLDP Neighbors
<a href="/configure/tree?path=/ieee802-dot1ab-lldp:lldp"
hx-get="/configure/tree?path=/ieee802-dot1ab-lldp:lldp"
hx-target="#content"
hx-push-url="true"
class="btn btn-sm btn-outline card-header-action">Configure &rarr;</a>
</div>
<div class="data-table-wrap">
<table class="data-table">
<thead>
@@ -39,7 +45,13 @@
</section>
{{else if not .Error}}
<section class="info-card">
<div class="card-header">LLDP Neighbors</div>
<div class="card-header">LLDP Neighbors
<a href="/configure/tree?path=/ieee802-dot1ab-lldp:lldp"
hx-get="/configure/tree?path=/ieee802-dot1ab-lldp:lldp"
hx-target="#content"
hx-push-url="true"
class="btn btn-sm btn-outline card-header-action">Configure &rarr;</a>
</div>
<p class="empty-message">No LLDP neighbors discovered.</p>
</section>
{{end}}
+7 -1
View File
@@ -10,7 +10,13 @@
<section class="info-grid">
<div class="info-card">
<div class="card-header">mDNS Status</div>
<div class="card-header">mDNS Status
<a href="/configure/tree?path=/infix-services:mdns"
hx-get="/configure/tree?path=/infix-services:mdns"
hx-target="#content"
hx-push-url="true"
class="btn btn-sm btn-outline card-header-action">Configure &rarr;</a>
</div>
<table class="info-table">
<tr>
<th>mDNS</th>
+7 -1
View File
@@ -11,7 +11,13 @@
{{if not .Error}}
<div class="info-card">
<div class="card-header">NACM Settings</div>
<div class="card-header">NACM Settings
<a href="/configure/tree?path=/ietf-netconf-acm:nacm"
hx-get="/configure/tree?path=/ietf-netconf-acm:nacm"
hx-target="#content"
hx-push-url="true"
class="btn btn-sm btn-outline card-header-action">Configure &rarr;</a>
</div>
<table class="info-table">
<tr><th>Enabled</th><td>{{.Enabled}}</td></tr>
<tr><th>Default read</th><td>{{.ReadDefault}}</td></tr>
+7 -1
View File
@@ -6,7 +6,13 @@
{{if .Error}}<div class="alert alert-error">{{.Error}}</div>{{end}}
<div class="info-card">
<div class="card-header">Routing Table</div>
<div class="card-header">Routing Table
<a href="/configure/tree?path=/ietf-routing:routing"
hx-get="/configure/tree?path=/ietf-routing:routing"
hx-target="#content"
hx-push-url="true"
class="btn btn-sm btn-outline card-header-action">Configure &rarr;</a>
</div>
{{if .Routes}}
<div class="data-table-wrap">
<table class="data-table">
+8 -1
View File
@@ -37,7 +37,13 @@
</div>
{{/* ── Right pane: node detail ──────────────────────────── */}}
<div class="yang-detail-pane" id="yang-detail">
<div class="yang-detail-pane" id="yang-detail"
{{if .InitialPath}}
hx-get="/configure/tree/node?path={{.InitialPath | urlquery}}"
hx-trigger="load"
hx-swap="innerHTML"
{{end}}>
{{if not .InitialPath}}
<div class="yang-detail-empty">
<svg width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"
@@ -47,6 +53,7 @@
</svg>
<p>Select a node to inspect.</p>
</div>
{{end}}
</div>
</div>