From 5b92193978e037d646edf23559440f18bf66be2c Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Thu, 18 Jan 2018 13:11:03 +0100 Subject: luci-app-mwan3: refactoring diagnostics view and controller Signed-off-by: Florian Eckert --- .../luasrc/view/mwan/status_diagnostics.htm | 105 ++++++++++----------- 1 file changed, 48 insertions(+), 57 deletions(-) (limited to 'applications/luci-app-mwan3/luasrc/view/mwan/status_diagnostics.htm') diff --git a/applications/luci-app-mwan3/luasrc/view/mwan/status_diagnostics.htm b/applications/luci-app-mwan3/luasrc/view/mwan/status_diagnostics.htm index f7a1ede2e4..7e1ef4106a 100644 --- a/applications/luci-app-mwan3/luasrc/view/mwan/status_diagnostics.htm +++ b/applications/luci-app-mwan3/luasrc/view/mwan/status_diagnostics.htm @@ -10,10 +10,11 @@ <% local uci = require "luci.model.uci" - interfaceNames = "" + local iface = {} + uci.cursor():foreach("mwan3", "interface", function (section) - interfaceNames = interfaceNames .. section[".name"] .. " " + table.insert(iface, section[".name"]) end ) %> @@ -22,74 +23,64 @@ -
-
- <%:MWAN Interface Diagnostics%> - -
- - - - - - -
-
+
+
+

<%:MWAN Status - Diagnostics%>

+ +
+
+ +
+ + +
+ +
+ + +
+ +
+ +
+
+
-
- - + <%+footer%> -- cgit v1.2.3