luci-app-wman3: show info if mwan3 is not global enabled 1626/head
authorFlorian Eckert <fe@dev.tdt.de>
Tue, 30 Jan 2018 07:12:53 +0000 (08:12 +0100)
committerFlorian Eckert <fe@dev.tdt.de>
Mon, 5 Feb 2018 09:45:22 +0000 (10:45 +0100)
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
applications/luci-app-mwan3/luasrc/view/mwan/status_detail.htm
applications/luci-app-mwan3/luasrc/view/mwan/status_diagnostics.htm
applications/luci-app-mwan3/luasrc/view/mwan/status_interface.htm
applications/luci-app-mwan3/luasrc/view/mwan/status_troubleshooting.htm

index b7bb6de1c79e7dfd8104665795655af0c0ba626c..70eac725207378a38da4ea9bfdba692c2851bba6 100644 (file)
@@ -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">
index f9a0fa2be44bbaa8968f85179a160144f6bf06d6..f1c5d8fd98c2402c24edb690ac3e7768567bb9eb 100644 (file)
@@ -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 />
 
index a796af815e484fe82290a2c70755e5c91ca89e79..21e59a801736b6e985d0819b8410c9936b1ba449 100644 (file)
@@ -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">
index b812e5b888431ecca0bdd7882afd6a82dbc52121..77d009231eb76fb3de606c55e8eefff7fd54a729 100644 (file)
@@ -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">