diff options
author | Dirk Brenken <dev@brenken.org> | 2017-07-31 08:05:54 +0200 |
---|---|---|
committer | Dirk Brenken <dev@brenken.org> | 2017-07-31 10:26:09 +0200 |
commit | 4142839e0d3196cf74fdeee80de5e01d84ffb861 (patch) | |
tree | 3751be46ec02f3dae3da643f0f8b1a489a43f677 /applications/luci-app-travelmate/luasrc/view | |
parent | 81f52d429081bba20a898d3a6ed5ad7241cbadc0 (diff) |
luci-app-travelmate: bugfixes
* fix interface default value on overview page
* fix re-ordering of wireless stations
* added translation fix by INAGAKI Hiroshi <musashino.open@gmail.com>
Signed-off-by: Dirk Brenken <dev@brenken.org>
Diffstat (limited to 'applications/luci-app-travelmate/luasrc/view')
-rw-r--r-- | applications/luci-app-travelmate/luasrc/view/travelmate/stations.htm | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/applications/luci-app-travelmate/luasrc/view/travelmate/stations.htm b/applications/luci-app-travelmate/luasrc/view/travelmate/stations.htm index f1c6be1628..d8ca96607f 100644 --- a/applications/luci-app-travelmate/luasrc/view/travelmate/stations.htm +++ b/applications/luci-app-travelmate/luasrc/view/travelmate/stations.htm @@ -14,7 +14,7 @@ This is free software, licensed under the Apache License, Version 2.0 <div class="cbi-map"> <h2 name="content"><%:Wireless Stations%></h2> <div class="cbi-map-descr"> - <%: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.%> + <%=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)%> </div> <fieldset class="cbi-section"> @@ -26,8 +26,11 @@ This is free software, licensed under the Apache License, Version 2.0 <th class="cbi-section-table-cell" style="text-align:center" colspan="2"><%:Actions%></th> </tr> <% - local pos = 1 - uci:foreach("wireless", "wifi-iface", function(s) + local pos = -1 + uci:foreach("wireless", "wifi-device", function(s) + pos = pos + 1 + end) + uci:foreach("wireless", "wifi-iface", function(s) pos = pos + 1 local section = s['.name'] local device = s.device or "" |