X-Git-Url: http://git.archive.openwrt.org/?a=blobdiff_plain;ds=sidebyside;f=modules%2Fluci-mod-admin-full%2Fluasrc%2Fview%2Fadmin_network%2Fiface_overview.htm;h=2512a35b3cdfd5ebf9f0c11b1764f651f0e6b0ac;hb=ea801ada7d43749fab14e680b78cb5977d7d488c;hp=b222cbca18473807882a71e74779a9a916c7b84c;hpb=c123fa86b02f7e9ecd7d474a03359628b444bd1d;p=project%2Fluci.git 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 b222cbca1..2512a35b3 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,25 @@ 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 += '
'; + } + + if (ifc.ip6prefix) + { + html += String.format('<%:IPv6-PD%>: %s
', ifc.ip6prefix); } d.innerHTML = html;