From 4142839e0d3196cf74fdeee80de5e01d84ffb861 Mon Sep 17 00:00:00 2001 From: Dirk Brenken Date: Mon, 31 Jul 2017 08:05:54 +0200 Subject: luci-app-travelmate: bugfixes * fix interface default value on overview page * fix re-ordering of wireless stations * added translation fix by INAGAKI Hiroshi Signed-off-by: Dirk Brenken --- .../luci-app-travelmate/luasrc/view/travelmate/stations.htm | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'applications/luci-app-travelmate/luasrc/view') diff --git a/applications/luci-app-travelmate/luasrc/view/travelmate/stations.htm b/applications/luci-app-travelmate/luasrc/view/travelmate/stations.htm index f1c6be162..d8ca96607 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

<%:Wireless Stations%>

- <%: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)%>
@@ -26,8 +26,11 @@ This is free software, licensed under the Apache License, Version 2.0 <%:Actions%> <% - 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 "" -- cgit v1.2.3