From: David Härdeman Date: Wed, 7 Feb 2024 14:41:48 +0000 (+0100) Subject: luci-mod-network: put each IPv6 address on a separate line X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=6f8b086aae3d46444605079a88ffd391546ede71;p=project%2Fluci.git luci-mod-network: put each IPv6 address on a separate line Right now, when there's active DHCPv6 leases and more than one address per host (e.g. because ULA is used together with GUA prefixes), the two IPv6 addresses will be printed on one line (which may or may not get broken up depending on the length of the addresses, which also looks inconsistent). Putting each address on a separate line makes it much easier to read the addresses (IMHO). Signed-off-by: David Härdeman (cherry picked from commit 9116a93d4311f541efa026f9eb3309a5f7554fd4) --- diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js index 43d27e2b54..4809333b27 100644 --- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js +++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js @@ -1155,7 +1155,7 @@ return view.extend({ return [ host || '-', - lease.ip6addrs ? lease.ip6addrs.join(' ') : lease.ip6addr, + lease.ip6addrs ? lease.ip6addrs.join('
') : lease.ip6addr, lease.duid, exp ]; diff --git a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/40_dhcp.js b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/40_dhcp.js index 4c52916423..0894d3d4d1 100644 --- a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/40_dhcp.js +++ b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/40_dhcp.js @@ -161,7 +161,7 @@ return baseclass.extend({ rows = [ host || '-', - lease.ip6addrs ? lease.ip6addrs.join(' ') : lease.ip6addr, + lease.ip6addrs ? lease.ip6addrs.join('
') : lease.ip6addr, lease.duid, exp ];