diff options
author | Alexander Logger <intagger@gmail.com> | 2015-12-08 21:20:11 +0300 |
---|---|---|
committer | Alexander Logger <intagger@gmail.com> | 2015-12-08 21:20:11 +0300 |
commit | f8d0ba00b2ff27dc9e2f10712bc343ae655fbdf9 (patch) | |
tree | 9700210b8beff82e5809ac92b500b9579a7b2457 /modules/luci-mod-admin-full | |
parent | bac5f2cebf281d3e23b9d52458f9f2e1c54a2494 (diff) |
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 <intagger@gmail.com>
Diffstat (limited to 'modules/luci-mod-admin-full')
-rw-r--r-- | modules/luci-mod-admin-full/luasrc/view/admin_network/iface_overview.htm | 16 |
1 files 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 b222cbca1..646d931f3 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 += '<strong><%:IPv4%>: </strong>'; - for (var i = 0; i < ifc.ipaddrs.length; i++) html += String.format( - '%s%s', - i ? ', ' : '', + '<strong><%:IPv4%>:</strong> %s<br />', ifc.ipaddrs[i] ); - - html += '<br />'; } if (ifc.ip6addrs && ifc.ip6addrs.length) { - html += '<strong><%:IPv6%>: </strong>'; - for (var i = 0; i < ifc.ip6addrs.length; i++) html += String.format( - '%s%s', - i ? ', ' : '', - ifc.ip6addrs[i].toUpperCase() + '<strong><%:IPv6%>:</strong> %s<br />', + ifc.ip6addrs[i] ); - - html += '<br />'; } d.innerHTML = html; |