From: Florian Eckert Date: Tue, 30 Jan 2018 07:12:53 +0000 (+0100) Subject: luci-app-wman3: show info if mwan3 is not global enabled X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=refs%2Fpull%2F1626%2Fhead;p=project%2Fluci.git luci-app-wman3: show info if mwan3 is not global enabled Signed-off-by: Florian Eckert --- diff --git a/applications/luci-app-mwan3/luasrc/view/mwan/status_detail.htm b/applications/luci-app-mwan3/luasrc/view/mwan/status_detail.htm index b7bb6de1c7..70eac72520 100644 --- a/applications/luci-app-mwan3/luasrc/view/mwan/status_detail.htm +++ b/applications/luci-app-mwan3/luasrc/view/mwan/status_detail.htm @@ -28,6 +28,9 @@

<%:MWAN Status - Detail%>

+ <%if not require("luci.sys").init.enabled("mwan3") then%> +
<%:INFO: MWAN not running%>
+ <%end%>
<%:Collecting data...%> 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 f9a0fa2be4..f1c5d8fd98 100644 --- a/applications/luci-app-mwan3/luasrc/view/mwan/status_diagnostics.htm +++ b/applications/luci-app-mwan3/luasrc/view/mwan/status_diagnostics.htm @@ -55,7 +55,9 @@

<%:MWAN Status - Diagnostics%>

- + <%if not require("luci.sys").init.enabled("mwan3") then%> +
<%:INFO: MWAN not running%>
+ <%end%>

diff --git a/applications/luci-app-mwan3/luasrc/view/mwan/status_interface.htm b/applications/luci-app-mwan3/luasrc/view/mwan/status_interface.htm index a796af815e..21e59a8017 100644 --- a/applications/luci-app-mwan3/luasrc/view/mwan/status_interface.htm +++ b/applications/luci-app-mwan3/luasrc/view/mwan/status_interface.htm @@ -66,6 +66,9 @@

<%:MWAN Status - Interface%>

+ <%if not require("luci.sys").init.enabled("mwan3") then%> +
<%:INFO: MWAN not running%>
+ <%end%>
<%:Collecting data...%> diff --git a/applications/luci-app-mwan3/luasrc/view/mwan/status_troubleshooting.htm b/applications/luci-app-mwan3/luasrc/view/mwan/status_troubleshooting.htm index b812e5b888..77d009231e 100644 --- a/applications/luci-app-mwan3/luasrc/view/mwan/status_troubleshooting.htm +++ b/applications/luci-app-mwan3/luasrc/view/mwan/status_troubleshooting.htm @@ -28,6 +28,9 @@

<%:MWAN Status - Troubleshooting%>

+ <%if not require("luci.sys").init.enabled("mwan3") then%> +
<%:INFO: MWAN not running%>
+ <%end%>
<%:Collecting data...%>