luci-app-wman3: show info if mwan3 is not global enabled

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
Florian Eckert 2018-01-30 08:12:53 +01:00
parent 4b0347d498
commit 66b93ab784
4 changed files with 12 additions and 1 deletions

View 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">

View 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 />

View 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">

View 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">