luci-app-mwan3: move status information to status menu entry
authorFlorian Eckert <fe@dev.tdt.de>
Thu, 11 Jan 2018 08:18:50 +0000 (09:18 +0100)
committerFlorian Eckert <fe@dev.tdt.de>
Thu, 11 Jan 2018 13:45:09 +0000 (14:45 +0100)
move status information to status menu entry

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
applications/luci-app-mwan3/luasrc/controller/mwan3.lua
applications/luci-app-mwan3/luasrc/view/mwan/openwrt_overview_status.htm
applications/luci-app-mwan3/luasrc/view/mwan/overview_detailed.htm
applications/luci-app-mwan3/luasrc/view/mwan/overview_interface.htm

index 4877f611ec75d088d88a026963a8fcccefeda629..4bb0d492e2d3be4d4d51930c0bb703ab65e5eacc 100644 (file)
@@ -10,22 +10,24 @@ function index()
                return
        end
 
-       entry({"admin", "network", "mwan"},
-               alias("admin", "network", "mwan", "overview"),
+
+       entry({"admin", "status", "mwan"},
+               alias("admin", "status", "mwan", "overview_interface"),
                _("Load Balancing"), 600)
 
-       entry({"admin", "network", "mwan", "overview"},
-               alias("admin", "network", "mwan", "overview", "overview_interface"),
-               _("Overview"), 10)
-       entry({"admin", "network", "mwan", "overview", "overview_interface"},
+       entry({"admin", "status", "mwan", "overview_interface"},
                template("mwan/overview_interface"))
-       entry({"admin", "network", "mwan", "overview", "interface_status"},
-               call("interfaceStatus"))
-       entry({"admin", "network", "mwan", "overview", "overview_detailed"},
+       entry({"admin", "status", "mwan", "overview_detailed"},
                template("mwan/overview_detailed"))
-       entry({"admin", "network", "mwan", "overview", "detailed_status"},
+       entry({"admin", "status", "mwan", "interface_status"},
+               call("interfaceStatus"))
+       entry({"admin", "status", "mwan", "detailed_status"},
                call("detailedStatus"))
 
+       entry({"admin", "network", "mwan"},
+               alias("admin", "network", "mwan", "configuration"),
+               _("Load Balancing"), 600)
+
        entry({"admin", "network", "mwan", "configuration"},
                alias("admin", "network", "mwan", "configuration", "interface"),
                _("Configuration"), 20)
index 7cef0630eea098a00239fc49ad1d7b2e2e88529d..335c95c8fd61bf461888b44af78b097a677b1990 100644 (file)
@@ -1,5 +1,5 @@
 <script type="text/javascript">//<![CDATA[
-       XHR.poll(5, '<%=luci.dispatcher.build_url("admin", "network", "mwan", "overview", "interface_status")%>', null,
+       XHR.poll(5, '<%=luci.dispatcher.build_url("admin", "status", "mwan", "interface_status")%>', null,
                function(x, mArray)
                {
                        var status = document.getElementById('mwan_status_text');
index 6a800c3f980e366d1f36caeb5a73abe2e292cbec..1403de1922337e65d84b5aa575d942806e755195 100644 (file)
@@ -1,13 +1,13 @@
 <%+header%>
 
 <ul class="cbi-tabmenu">
-       <li class="cbi-tab-disabled"><a href="<%=luci.dispatcher.build_url("admin/network/mwan/overview")%>"><%:Interface Status%></a></li>
-       <li class="cbi-tab"><a href="<%=luci.dispatcher.build_url("admin/network/mwan/overview/overview_detailed")%>"><%:Detailed Status%></a></li>
+       <li class="cbi-tab-disabled"><a href="<%=luci.dispatcher.build_url("admin/status/mwan/overview_interface")%>"><%:Interface Status%></a></li>
+       <li class="cbi-tab"><a href="<%=luci.dispatcher.build_url("admin/status/mwan/overview_detailed")%>"><%:Detailed Status%></a></li>
 </ul>
 
 <script type="text/javascript" src="<%=resource%>/cbi.js"></script>
 <script type="text/javascript">//<![CDATA[
-       XHR.poll(5, '<%=luci.dispatcher.build_url("admin", "network", "mwan", "overview", "detailed_status")%>', null,
+       XHR.poll(5, '<%=luci.dispatcher.build_url("admin", "status", "mwan", "detailed_status")%>', null,
                function(x, mArray)
                {
                        var status = document.getElementById('mwan_detail_text');
index 2929a6df6095693dc2fa1f2eff928ae00e222db2..eabdf293afd03dfc62a5beba14a4c233785a43ee 100644 (file)
@@ -1,13 +1,13 @@
 <%+header%>
 
 <ul class="cbi-tabmenu">
-       <li class="cbi-tab"><a href="<%=luci.dispatcher.build_url("admin/network/mwan/overview")%>"><%:Interface Status%></a></li>
-       <li class="cbi-tab-disabled"><a href="<%=luci.dispatcher.build_url("admin/network/mwan/overview/overview_detailed")%>"><%:Detailed Status%></a></li>
+       <li class="cbi-tab"><a href="<%=luci.dispatcher.build_url("admin/status/mwan/overview_interface")%>"><%:Interface Status%></a></li>
+       <li class="cbi-tab-disabled"><a href="<%=luci.dispatcher.build_url("admin/status/mwan/overview_detailed")%>"><%:Detailed Status%></a></li>
 </ul>
 
 <script type="text/javascript" src="<%=resource%>/cbi.js"></script>
 <script type="text/javascript">//<![CDATA[
-       XHR.poll(5, '<%=luci.dispatcher.build_url("admin", "network", "mwan", "overview", "interface_status")%>', null,
+       XHR.poll(5, '<%=luci.dispatcher.build_url("admin", "status", "mwan", "interface_status")%>', null,
                function(x, mArray)
                {
                        var statusDiv = document.getElementById('mwan_status_text');