diff options
author | Hannu Nyman <hannu.nyman@iki.fi> | 2015-12-18 20:38:08 +0200 |
---|---|---|
committer | Hannu Nyman <hannu.nyman@iki.fi> | 2015-12-18 20:38:08 +0200 |
commit | e42e5f58651983b9971c2facb08354cc2273dbef (patch) | |
tree | 4fc323d63f01d1e6147379ae77cde8adb80170e7 /modules/luci-mod-admin-full/luasrc/view/admin_network | |
parent | 68e54eb0f2668a614d966147f4de4274579e421e (diff) |
luci-mod-admin-full: interface status page / clarify address display
Copy the changes made by f8d0ba00b2ff27dc9e2f10712bc343ae655fbdf9
also to the interface details pages in order to clarify display of
multiple addresses.
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
Diffstat (limited to 'modules/luci-mod-admin-full/luasrc/view/admin_network')
-rw-r--r-- | modules/luci-mod-admin-full/luasrc/view/admin_network/iface_status.htm | 16 |
1 files changed, 3 insertions, 13 deletions
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 94d9e8811..8c3b1abcc 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,30 +39,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; |