diff options
author | Hannu Nyman <hannu.nyman@iki.fi> | 2015-12-09 11:43:36 +0200 |
---|---|---|
committer | Hannu Nyman <hannu.nyman@iki.fi> | 2015-12-09 11:43:36 +0200 |
commit | c18a0e447fa0fd0ee74dab2ed27c1d261c0efe4d (patch) | |
tree | 9700210b8beff82e5809ac92b500b9579a7b2457 | |
parent | bac5f2cebf281d3e23b9d52458f9f2e1c54a2494 (diff) | |
parent | f8d0ba00b2ff27dc9e2f10712bc343ae655fbdf9 (diff) |
Merge pull request #567 from inTagger/ip-addr-view-update
luci-mod-admin-full: update IPv4/IPv6 list views
-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 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 += '<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; |