X-Git-Url: http://git.archive.openwrt.org/?a=blobdiff_plain;ds=sidebyside;f=applications%2Fluci-app-travelmate%2Fluasrc%2Fview%2Ftravelmate%2Fstations.htm;h=cbb6c189b8132697497d3bdcee44611c6d8e0571;hb=b2274e5d6d27cdd0819d9e35058ebcd2cb8b55f5;hp=bdb265f195242d3998201b5a42568b9869e80fdc;hpb=314dd1aa11d1fbe3501928e89823e2521eb651d3;p=project%2Fluci.git diff --git a/applications/luci-app-travelmate/luasrc/view/travelmate/stations.htm b/applications/luci-app-travelmate/luasrc/view/travelmate/stations.htm index bdb265f19..cbb6c189b 100644 --- a/applications/luci-app-travelmate/luasrc/view/travelmate/stations.htm +++ b/applications/luci-app-travelmate/luasrc/view/travelmate/stations.htm @@ -3,10 +3,9 @@ Copyright 2017 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 uci = require("luci.model.uci").cursor() local trmiface = uci:get("travelmate", "global", "trm_iface") or "trm_wwan" -%> @@ -14,52 +13,46 @@ 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)%> +
- - - + <% - local pos = 1 - uci:foreach("wireless", "wifi-iface", function(s) - pos = pos + 1 - local section = s['.name'] - local device = s.device or "" - local mode = s.mode or "" + uci:foreach("wireless", "wifi-iface", function(s) 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 encryption = s.encryption or "" + local disabled = s.disabled or "" + local style = "color:#000000" + if disabled == "0" then + style = "color:#0069d6;font-weight:bold" + end %> - + - - - - - -<% +<% end end) %> @@ -71,13 +64,14 @@ This is free software, licensed under the Apache License, Version 2.0 local device = s[".name"] %> - - - + + + <% end) %> + <%+footer%>
<%:Device%><%:Mode%><%:Uplink Interface%> <%:SSID%> <%:Encryption%><%:Disabled%><%:Actions%>
<%=device%><%=mode%><%=iface%> <%=ssid%> <%=encryption%><%=disabled%> - - + + + - - + + +