From 6942e4ab1b5f465caab9ad95ed938f75fa05cd1a Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 20 Jan 2011 23:27:48 +0000 Subject: modules/admin-full: rework wifi status templates --- modules/admin-full/luasrc/view/admin_network/wifi_join.htm | 2 +- modules/admin-full/luasrc/view/admin_network/wifi_overview.htm | 9 +++++++-- modules/admin-full/luasrc/view/admin_network/wifi_status.htm | 9 +++++++-- 3 files changed, 15 insertions(+), 5 deletions(-) (limited to 'modules/admin-full') diff --git a/modules/admin-full/luasrc/view/admin_network/wifi_join.htm b/modules/admin-full/luasrc/view/admin_network/wifi_join.htm index 4dea9bacc..a1959a4ee 100644 --- a/modules/admin-full/luasrc/view/admin_network/wifi_join.htm +++ b/modules/admin-full/luasrc/view/admin_network/wifi_join.htm @@ -114,7 +114,7 @@ $Id$ " /> - + diff --git a/modules/admin-full/luasrc/view/admin_network/wifi_overview.htm b/modules/admin-full/luasrc/view/admin_network/wifi_overview.htm index 615e76607..29de11cab 100644 --- a/modules/admin-full/luasrc/view/admin_network/wifi_overview.htm +++ b/modules/admin-full/luasrc/view/admin_network/wifi_overview.htm @@ -167,7 +167,7 @@ $Id$ { if (is_assoc) info.innerHTML = String.format( - '<%:SSID%>: %s | ' + + '<%:SSID%>: %h | ' + '<%:Mode%>: %s
' + '<%:BSSID%>: %s | ' + '<%:Encryption%>: %s', @@ -175,7 +175,12 @@ $Id$ iw.encryption ? iw.encryption.description : '<%:None%>' ); else - info.innerHTML = '<%:Wireless is disabled or not associated%>'; + info.innerHTML = String.format( + '<%:SSID%>: %h | ' + + '<%:Mode%>: %s
' + + '<%:Wireless is disabled or not associated%>', + iw.ssid || '?', iw.mode + ); } var dev = document.getElementById(wifidevs[iw.id] + '-iw-devinfo'); diff --git a/modules/admin-full/luasrc/view/admin_network/wifi_status.htm b/modules/admin-full/luasrc/view/admin_network/wifi_status.htm index 01a49c43e..ba99acf19 100644 --- a/modules/admin-full/luasrc/view/admin_network/wifi_status.htm +++ b/modules/admin-full/luasrc/view/admin_network/wifi_status.htm @@ -37,7 +37,7 @@ if (d && is_assoc) d.innerHTML = String.format( '<%:Mode%>: %s | ' + - '<%:SSID%>: %s
' + + '<%:SSID%>: %h
' + '<%:BSSID%>: %s | ' + '<%:Encryption%>: %s
' + '<%:Channel%>: %d (%.3f GHz) | ' + @@ -53,7 +53,12 @@ iw.bitrate ? (iw.bitrate / 1000) : 0, iw.country ); else if (d) - d.innerHTML = '<%:Wireless is disabled or not associated%>'; + d.innerHTML = String.format( + '<%:SSID%>: %h | ' + + '<%:Mode%>: %s
' + + '<%:Wireless is disabled or not associated%>', + iw.ssid || '?', iw.mode + ); } window.setTimeout(update_status, 5000); -- cgit v1.2.3