From 067d7dc9f708d5ebeda1072fb6dc82e960de0d81 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 28 May 2018 14:57:54 +0200 Subject: treewide: convert HTML tables to div Mostly convert HTML tables to div based markup to allow for easier styling in the future. Also change JS accessor code accordingly. Signed-off-by: Jo-Philipp Wich --- .../luasrc/view/travelmate/stations.htm | 38 ++++++++++---------- .../luasrc/view/travelmate/wifi_scan.htm | 40 +++++++++++----------- 2 files changed, 39 insertions(+), 39 deletions(-) (limited to 'applications/luci-app-travelmate/luasrc') diff --git a/applications/luci-app-travelmate/luasrc/view/travelmate/stations.htm b/applications/luci-app-travelmate/luasrc/view/travelmate/stations.htm index 75e52aeb27..bee6fcb360 100644 --- a/applications/luci-app-travelmate/luasrc/view/travelmate/stations.htm +++ b/applications/luci-app-travelmate/luasrc/view/travelmate/stations.htm @@ -17,14 +17,14 @@ This is free software, licensed under the Apache License, Version 2.0
- - - - - - - - +
+
+
<%:Device%>
+
<%:SSID%>
+
<%:BSSID%>
+
<%:Encryption%>
+
<%:Actions%>
+
<% uci:foreach("wireless", "wifi-iface", function(s) local iface = s.network or "" @@ -40,25 +40,25 @@ This is free software, licensed under the Apache License, Version 2.0 style = "text-align:left;color:#0069d6;font-weight:bold" end %> -
- - - - - - - + + <% end end) %> -
<%:Device%><%:SSID%><%:BSSID%><%:Encryption%><%:Actions%>
<%=device%><%=ssid%><%=bssid%><%=encryption%> +
+
<%=device%>
+
<%=ssid%>
+
<%=bssid%>
+
<%=encryption%>
+
-
+ +
-
+
<% diff --git a/applications/luci-app-travelmate/luasrc/view/travelmate/wifi_scan.htm b/applications/luci-app-travelmate/luasrc/view/travelmate/wifi_scan.htm index a8f63a17e2..81182b99b4 100644 --- a/applications/luci-app-travelmate/luasrc/view/travelmate/wifi_scan.htm +++ b/applications/luci-app-travelmate/luasrc/view/travelmate/wifi_scan.htm @@ -42,28 +42,28 @@ This is free software, licensed under the Apache License, Version 2.0

<%:Wireless Scan%>

- - - - - - - +
+
+
<%:Uplink SSID%>
+
<%:Uplink BSSID%>
+
<%:Encryption%>
+
<%:Signal strength%>
+
<% for i, net in ipairs(iw.scanlist or { }) do %> -
- - - - - - + + <% end %> -
<%:Uplink SSID%><%:Uplink BSSID%><%:Encryption%><%:Signal strength%>
+
+
<%=net.ssid and utl.pcdata(net.ssid) or "%s" % translate("hidden")%> -
+ +
<%=net.bssid and utl.pcdata(net.bssid)%> -
+ +
<%=format_wifi_encryption(net.encryption)%> -
+ +
<%=percent_wifi_signal(net)%> % -
+ +
@@ -76,10 +76,10 @@ This is free software, licensed under the Apache License, Version 2.0 <% end %>
-
+
-- cgit v1.2.3