luci-app-mwan3: remove css styling from status_interface page
[project/luci.git] / applications / luci-app-mwan3 / luasrc / view / mwan / status_interface.htm
index a796af8..ae28df1 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">
        </fieldset>
 </div>
 
-<style type="text/css">
-  #mwan_status_text {
-       display: table;
-       font-size: 14px;
-       margin: auto;
-       max-width: 1044px;
-       min-width: 246px;
-       width: 100%;
-  }
-  .wanon {
-       background-color: rgb(144, 240, 144);
-  }
-  .wanoff {
-       background-color: rgb(240, 144, 144);
-  }
-  .wanon, .wanoff {
-       border-radius: 60px;
-       box-shadow: 0px 2px 5px -3px;
-       float: left;
-       margin: 8px 3px 0px 3px;
-       min-height: 30px;
-       min-width: 235px;
-       padding: 5px 10px 8px 10px;
-       text-align: center;
-  }
-  #mwan_statuslog_text {
-       padding: 20px;
-       text-align: left;
-  }
-</style>
-
 <%+footer%>