Skip to content

Commit

Permalink
luci-app-wman3: show info if mwan3 is not global enabled
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
  • Loading branch information
feckert committed Feb 5, 2018
1 parent 4b0347d commit 66b93ab
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 />

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down

0 comments on commit 66b93ab

Please sign in to comment.