From 3b586fe86d1e3d3d0b6bef6b01dbb9e2e894921f Mon Sep 17 00:00:00 2001 From: kodi Date: Thu, 19 Feb 2026 15:14:44 +0100 Subject: [PATCH] feat(containers-dashboard): port mappings van containers pods verplaatst naar pod header row --- webui/html/index.html | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/webui/html/index.html b/webui/html/index.html index c3eb0ad..cf40bd3 100644 --- a/webui/html/index.html +++ b/webui/html/index.html @@ -658,8 +658,11 @@ const podName = c.PodName || '-'; const image = c.Image || c.image || ''; const managed = c._dashboard_source || 'podman'; - const ports = (c._dashboard_published_ports || []).join(", ") - || (c.Ports || []).map(p => `${p.host_port}:${p.container_port}`).join(", "); + const inPod = !!(c.PodName && String(c.PodName).trim()); + const ports = inPod + ? '' // verberg bij pod-containers + : ((c._dashboard_published_ports || []).join(", ") + || (c.Ports || []).map(p => `${p.host_port}:${p.container_port}`).join(", ")); return ` @@ -720,6 +723,14 @@ const isRealPod = (pod !== '(geen pod)'); const total = items.length; + let podPortsText = "-"; + if (isRealPod) { + const podPorts = Array.from(new Set( + items.flatMap(c => (c._dashboard_published_ports || [])) + )).sort((a, b) => _cmpStr(a, b)); + podPortsText = podPorts.length ? podPorts.join(", ") : "-"; + } + let cls = 'muted'; let label = '-'; @@ -759,7 +770,7 @@ ${isRealPod ? 'pod' : '-'} - - - - + ${esc(podPortsText)} ${isRealPod ? `