X-Git-Url: http://git.archive.openwrt.org/?a=blobdiff_plain;f=applications%2Fluci-app-travelmate%2Fluasrc%2Fview%2Ftravelmate%2Fstations.htm;h=f1c6be162878a311c15a6db6869c3b2e7ed816ed;hb=f7a9c713e56a53a83bf789c7e0d1e9554261b3d3;hp=e79fb0c95bcce184c647b351eee75840f2d5dcd2;hpb=f7cf1dae69a164f4e46daa0c167636f4879b97a0;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 e79fb0c95..f1c6be162 100644 --- a/applications/luci-app-travelmate/luasrc/view/travelmate/stations.htm +++ b/applications/luci-app-travelmate/luasrc/view/travelmate/stations.htm @@ -3,7 +3,6 @@ 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() @@ -14,20 +13,22 @@ 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.%>
+
+ <%:Provides an overview of all configured uplinks for the travelmate interface (%><%=trmiface%><%:). You can edit, delete or re-order existing uplinks or scan for a new one. The currently used uplink is emphasized in blue.%> +
- - - + <% - uci:foreach("wireless", "wifi-iface", function(s) + 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 "" @@ -35,18 +36,23 @@ This is free software, licensed under the Apache License, Version 2.0 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 if iface == trmiface then %> - + - - - - + <% @@ -61,13 +67,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%> - - + + + + + +