summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHannu Nyman <hannu.nyman@iki.fi>2015-12-09 11:43:36 +0200
committerHannu Nyman <hannu.nyman@iki.fi>2015-12-09 11:43:36 +0200
commitc18a0e447fa0fd0ee74dab2ed27c1d261c0efe4d (patch)
tree9700210b8beff82e5809ac92b500b9579a7b2457
parentbac5f2cebf281d3e23b9d52458f9f2e1c54a2494 (diff)
parentf8d0ba00b2ff27dc9e2f10712bc343ae655fbdf9 (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.htm16
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;