luci-app-mwan3: remove duplicated code section
[project/luci.git] / applications / luci-app-mwan3 / luasrc / view / mwan / status_troubleshooting.htm
index 348bf94..77d0092 100644 (file)
@@ -1,3 +1,9 @@
+<%#
+ Copyright 2014 Aedan Renner <chipdankly@gmail.com>
+ Copyright 2018 Florian Eckert <fe@dev.tdt.de>
+ Licensed to the public under the GNU General Public License v2.
+-%>
+
 <%+header%>
 
 <ul class="cbi-tabmenu">
@@ -22,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">