From: Hannu Nyman Date: Mon, 21 Dec 2015 21:02:12 +0000 (+0200) Subject: luci-mod-admin-full: interface status page / clarify address display X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=6e179419dc1f72f381c51bc78c0d5838ea7ca0f8;ds=sidebyside luci-mod-admin-full: interface status page / clarify address display Backport commit e42e5f58651983b9971c2facb08354cc2273dbef Copy the changes made by f8d0ba0 also to the interface details pages in order to clarify display of multiple addresses. Signed-off-by: Hannu Nyman --- diff --git a/modules/luci-mod-admin-full/luasrc/view/admin_network/iface_status.htm b/modules/luci-mod-admin-full/luasrc/view/admin_network/iface_status.htm index 813638396..6aa728e1a 100644 --- a/modules/luci-mod-admin-full/luasrc/view/admin_network/iface_status.htm +++ b/modules/luci-mod-admin-full/luasrc/view/admin_network/iface_status.htm @@ -39,32 +39,22 @@ if (ifc.ipaddrs && ifc.ipaddrs.length) { - html += '<%:IPv4%>: '; - for (var i = 0; i < ifc.ipaddrs.length; i++) html += String.format( - '%s%s/%d', - i ? ', ' : '', + '<%:IPv4%>: %s/%d
', ifc.ipaddrs[i].addr, ifc.ipaddrs[i].prefix ); - - html += '
'; } if (ifc.ip6addrs && ifc.ip6addrs.length) { - html += '<%:IPv6%>: '; - for (var i = 0; i < ifc.ip6addrs.length; i++) html += String.format( - '%s%s/%d', - i ? ', ' : '', - ifc.ip6addrs[i].addr.toUpperCase(), + '<%:IPv6%>: %s/%d
', + ifc.ip6addrs[i].addr, ifc.ip6addrs[i].prefix ); - - html += '
'; } d.innerHTML = html;