From f8d0ba00b2ff27dc9e2f10712bc343ae655fbdf9 Mon Sep 17 00:00:00 2001 From: Alexander Logger Date: Tue, 8 Dec 2015 21:20:11 +0300 Subject: [PATCH] luci-mod-admin-full: update IPv4/IPv6 list views For better view of 'Interface Overview' IPv4/IPv6 addresses for interfaces should be displayed as lists, but not as comma separated strings. Signed-off-by: Alexander Logger --- .../luasrc/view/admin_network/iface_overview.htm | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/modules/luci-mod-admin-full/luasrc/view/admin_network/iface_overview.htm b/modules/luci-mod-admin-full/luasrc/view/admin_network/iface_overview.htm index b222cbca18..646d931f37 100644 --- a/modules/luci-mod-admin-full/luasrc/view/admin_network/iface_overview.htm +++ b/modules/luci-mod-admin-full/luasrc/view/admin_network/iface_overview.htm @@ -149,30 +149,20 @@ if (ifc.ipaddrs && ifc.ipaddrs.length) { - html += '<%:IPv4%>: '; - for (var i = 0; i < ifc.ipaddrs.length; i++) html += String.format( - '%s%s', - i ? ', ' : '', + '<%:IPv4%>: %s
', ifc.ipaddrs[i] ); - - html += '
'; } if (ifc.ip6addrs && ifc.ip6addrs.length) { - html += '<%:IPv6%>: '; - for (var i = 0; i < ifc.ip6addrs.length; i++) html += String.format( - '%s%s', - i ? ', ' : '', - ifc.ip6addrs[i].toUpperCase() + '<%:IPv6%>: %s
', + ifc.ip6addrs[i] ); - - html += '
'; } d.innerHTML = html; -- 2.30.2