luci-app-dockerman: enable ports display on containers
authorPaul Donald <newtwen+github@gmail.com>
Thu, 5 Feb 2026 23:17:14 +0000 (00:17 +0100)
committerPaul Donald <newtwen+github@gmail.com>
Thu, 5 Feb 2026 23:17:50 +0000 (00:17 +0100)
Closes #8302

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
applications/luci-app-dockerman/htdocs/luci-static/resources/view/dockerman/containers.js

index 301888b1a53221a38b87e6f48543f6ac267a36ca..e118ac4f528d5fd9bfeddbec176a64f4ef0e8630 100644 (file)
@@ -161,8 +161,8 @@ return dm2.dv.extend({
                o = conSec.option(form.DummyValue, 'State', _('State'));
                o = conSec.option(form.DummyValue, 'Networks', _('Networks'));
                o.rawhtml = true;
-               // o = conSec.option(form.DummyValue, 'Ports', _('Ports'));
-               // o.rawhtml = true;
+               o = conSec.option(form.DummyValue, 'Ports', _('Ports'));
+               o.rawhtml = true;
                o = conSec.option(form.DummyValue, 'Command', _('Command'));
                o.width = 200;
                o = conSec.option(form.DummyValue, 'Created', _('Created'));
@@ -344,11 +344,12 @@ return dm2.dv.extend({
                                Created: this.buildTimeString(cont?.Created) || '',
                                Ports: (Array.isArray(cont.Ports) && cont.Ports.length > 0)
                                                ? cont.Ports.map(p => {
-                                                       const ip = p.IP || '';
+                                                       // const ip = p.IP || '';
                                                        const pub = p.PublicPort || '';
                                                        const priv = p.PrivatePort || '';
                                                        const type = p.Type || '';
-                                                       return `${ip ? ip + ':' : ''}${pub} -> ${priv} (${type})`;
+                                                       return `${pub ? pub + ':' : ''}${priv}/${type}`;
+                                                       // return `${ip ? ip + ':' : ''}${pub} -> ${priv} (${type})`;
                                                }).join('<br/>')
                                                : '',
                        });