summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-mwan3/luasrc/view/mwan
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2018-01-30 08:12:53 +0100
committerFlorian Eckert <fe@dev.tdt.de>2018-02-05 10:45:22 +0100
commit66b93ab784ad287142964559eaf9f89cb2fa39df (patch)
tree04ef2ccbd9db4903c79c89f0ff438ba65af67348 /applications/luci-app-mwan3/luasrc/view/mwan
parent4b0347d498a9c779b4ece45b7b28dd6b9ee752ae (diff)
luci-app-wman3: show info if mwan3 is not global enabled
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Diffstat (limited to 'applications/luci-app-mwan3/luasrc/view/mwan')
-rw-r--r--applications/luci-app-mwan3/luasrc/view/mwan/status_detail.htm3
-rw-r--r--applications/luci-app-mwan3/luasrc/view/mwan/status_diagnostics.htm4
-rw-r--r--applications/luci-app-mwan3/luasrc/view/mwan/status_interface.htm3
-rw-r--r--applications/luci-app-mwan3/luasrc/view/mwan/status_troubleshooting.htm3
4 files changed, 12 insertions, 1 deletions
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 @@
<div class="cbi-map">
<h2 name="content"><%:MWAN Status - Detail%></h2>
+ <%if not require("luci.sys").init.enabled("mwan3") then%>
+ <div><strong><%:INFO: MWAN not running%></strong></div>
+ <%end%>
<fieldset class="cbi-section">
<legend id="diag-rc-legend"><%:Collecting data...%></legend>
<span id="diag-rc-output">
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 @@
<form method="post" action="<%=url('admin/network/diagnostics')%>">
<div class="cbi-map">
<h2 name="content"><%:MWAN Status - Diagnostics%></h2>
-
+ <%if not require("luci.sys").init.enabled("mwan3") then%>
+ <div><strong><%:INFO: MWAN not running%></strong></div>
+ <%end%>
<fieldset class="cbi-section">
<br />
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 @@
<div class="cbi-map">
<h2 name="content"><%:MWAN Status - Interface%></h2>
+ <%if not require("luci.sys").init.enabled("mwan3") then%>
+ <div><strong><%:INFO: MWAN not running%></strong></div>
+ <%end%>
<fieldset class="cbi-section">
<legend id="diag-rc-legend"><%:Collecting data...%></legend>
<span id="diag-rc-output">
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 @@
<div class="cbi-map">
<h2 name="content"><%:MWAN Status - Troubleshooting%></h2>
+ <%if not require("luci.sys").init.enabled("mwan3") then%>
+ <div><strong><%:INFO: MWAN not running%></strong></div>
+ <%end%>
<fieldset class="cbi-section">
<legend id="diag-rc-legend"><%:Collecting data...%></legend>
<span id="diag-rc-output">