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=ae1ea797a24ef04c6f7a6fe7fb71da6e5094475c;hp=ee58f52e13381b52193758bacda6dca7d1c10066;hb=2b200cfa792ab159247243dc2d7e961c10cb1a4d;hpb=31f77a3cfe3ff04d7c20d7ba6d2daacdcc9fbc5d diff --git a/applications/luci-app-travelmate/luasrc/view/travelmate/stations.htm b/applications/luci-app-travelmate/luasrc/view/travelmate/stations.htm index ee58f52e1..ae1ea797a 100644 --- a/applications/luci-app-travelmate/luasrc/view/travelmate/stations.htm +++ b/applications/luci-app-travelmate/luasrc/view/travelmate/stations.htm @@ -1,12 +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" -%> @@ -14,46 +13,49 @@ This is free software, licensed under the Apache License, Version 2.0

<%:Wireless Stations%>

-
<%:Provides an overview of all configured uplink interfaces for travelmate. You can edit and delete existing interfaces or scan for new uplinks.%>
+
+ <%=translatef("Provides an overview of all configured uplinks for the travelmate interface (%s). You can edit, delete or re-order existing uplinks or scan for a new one. The currently used uplink is emphasized in blue.", trmiface)%> +
- - + - + <% uci:foreach("wireless", "wifi-iface", function(s) - local section = s['.name'] - local device = s.device or "" - local mode = s.mode or "" local iface = s.network or "" - local ssid = s.ssid or "" - local encryption = s.encryption or "" - local disabled = s.disabled or "" - local style = "color:#000000" - if disabled == "0" then - style = "color:#0069d6" - end if iface == trmiface then + 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 = "text-align:left;color:#000000" + if disabled == "0" then + style = "text-align:left;color:#0069d6;font-weight:bold" + end %> - - - - - - - - + + + + + + -<% +<% end end) %> @@ -64,14 +66,15 @@ This is free software, licensed under the Apache License, Version 2.0 uci:foreach("wireless", "wifi-device", function(s) local device = s[".name"] %> - - - - + + + + <% end) %> + <%+footer%>
<%:Device%><%:Mode%><%:Uplink Interface%> <%:SSID%><%:BSSID%> <%:Encryption%><%:Disabled%><%:Actions%>
<%=device%><%=mode%><%=iface%><%=ssid%><%=encryption%><%=disabled%> - - +
<%=device%><%=ssid%><%=bssid%><%=encryption%> + + + + +