X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=applications%2Fluci-app-travelmate%2Fluasrc%2Fview%2Ftravelmate%2Fstations.htm;h=a26733995051b4c3a33d00d59972afd85ec86219;hp=f1f26801ce4a3a63577530817891aeb4dcd3a493;hb=f11b0c00001a789cdf73a5de675f12a3a3db3e49;hpb=7387bf619f7ad42b1047ee799649c1e1a96fadd4 diff --git a/applications/luci-app-travelmate/luasrc/view/travelmate/stations.htm b/applications/luci-app-travelmate/luasrc/view/travelmate/stations.htm index f1f26801c..a26733995 100644 --- a/applications/luci-app-travelmate/luasrc/view/travelmate/stations.htm +++ b/applications/luci-app-travelmate/luasrc/view/travelmate/stations.htm @@ -1,11 +1,11 @@ <%# -Copyright 2017 Dirk Brenken (dev@brenken.org) +Copyright 2017-2018 Dirk Brenken (dev@brenken.org) This is free software, licensed under the Apache License, Version 2.0 -%> <%- - local write = io.write - local uci = require "luci.model.uci".cursor() + local write = io.write + local uci = require("luci.model.uci").cursor() local trmiface = uci:get("travelmate", "global", "trm_iface") or "trm_wwan" -%> @@ -22,6 +22,7 @@ This is free software, licensed under the Apache License, Version 2.0 <%:Device%> <%:SSID%> + <%:BSSID%> <%:Encryption%> <%:Actions%> @@ -29,31 +30,32 @@ This is free software, licensed under the Apache License, Version 2.0 uci:foreach("wireless", "wifi-iface", function(s) local iface = s.network or "" if iface == trmiface then - local section = s['.name'] - local device = s.device or "" - local mode = s.mode or "" - local ssid = s.ssid or "" - local encryption = s.encryption or "" + local section = s['.name'] or "" + local device = s.device or "-" + local ssid = s.ssid or "-" + local bssid = s.bssid or "-" + local encryption = s.encryption or "-" local disabled = s.disabled or "" - local style = "color:#000000" + local style = "text-align:left;color:#000000" if disabled == "0" then - style = "color:#0069d6;font-weight:bold" + style = "text-align:left;color:#0069d6;font-weight:bold" end %> - <%=device%> - <%=ssid%> - <%=encryption%> - - - + <%=device%> + <%=ssid%> + <%=bssid%> + <%=encryption%> + + + - - - + + + -<% +<% end end) %> @@ -64,10 +66,10 @@ This is free software, licensed under the Apache License, Version 2.0 uci:foreach("wireless", "wifi-device", function(s) local device = s[".name"] %> -
+ - +
<% end)