luci-mod-admin-full: interface status page / clarify address display
Copy the changes made by f8d0ba00b2
also to the interface details pages in order to clarify display of
multiple addresses.
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
This commit is contained in:
parent
68e54eb0f2
commit
e42e5f5865
1 changed files with 3 additions and 13 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue