luci-mod-admin-full: status page formatting fix

Display a question mark for undefined SSID and BSSID strings.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
Jo-Philipp Wich 2016-08-04 11:42:40 +02:00
parent 123f14b55d
commit bd4534496a

View file

@ -471,7 +471,7 @@
'<strong><%:Bitrate%>:</strong> %s <%:Mbit/s%><br />', '<strong><%:Bitrate%>:</strong> %s <%:Mbit/s%><br />',
icon, net.signal, net.noise, icon, net.signal, net.noise,
net.quality, net.quality,
net.link, net.ssid, net.link, net.ssid || '?',
net.mode, net.mode,
net.channel, net.frequency, net.channel, net.frequency,
net.bitrate || '?' net.bitrate || '?'
@ -482,7 +482,7 @@
s += String.format( s += String.format(
'<strong><%:BSSID%>:</strong> %s<br />' + '<strong><%:BSSID%>:</strong> %s<br />' +
'<strong><%:Encryption%>:</strong> %s', '<strong><%:Encryption%>:</strong> %s',
net.bssid, net.bssid || '?',
net.encryption net.encryption
); );
} }