2 Copyright 2014 Aedan Renner <chipdankly@gmail.com>
3 Copyright 2018 Florian Eckert <fe@dev.tdt.de>
4 Licensed to the public under the GNU General Public License v2.
9 <ul class="cbi-tabmenu">
10 <li class="cbi-tab"><a href="<%=luci.dispatcher.build_url("admin/status/mwan/overview")%>"><%:Interface%></a></li>
11 <li class="cbi-tab-disabled"><a href="<%=luci.dispatcher.build_url("admin/status/mwan/detail")%>"><%:Detail%></a></li>
12 <li class="cbi-tab-disabled"><a href="<%=luci.dispatcher.build_url("admin/status/mwan/diagnostics")%>"><%:Diagnostics%></a></li>
13 <li class="cbi-tab-disabled"><a href="<%=luci.dispatcher.build_url("admin/status/mwan/troubleshooting")%>"><%:Troubleshooting%></a></li>
16 <script type="text/javascript" src="<%=resource%>/cbi.js"></script>
17 <script type="text/javascript">//<![CDATA[
18 XHR.poll(5, '<%=luci.dispatcher.build_url("admin", "status", "mwan", "interface_status")%>', null,
21 var legend = document.getElementById('diag-rc-legend');
22 var statusDiv = document.getElementById('diag-rc-output');
23 legend.style.display = 'none';
24 if (status.interfaces)
27 for ( var iface in status.interfaces)
31 switch (status.interfaces[iface].status)
34 state = '<%:Online (tracking active)%>';
38 state = '<%:Online (tracking off)%>';
42 state = '<%:Offline%>';
46 state = '<%:Disabled%>';
50 statusview += String.format(
51 '<span class="%s"><strong>%s</strong><br />%s</span>',
57 statusDiv.innerHTML = statusview;
61 statusDiv.innerHTML = '<strong><%:No MWAN interfaces found%></strong>';
68 <h2 name="content"><%:MWAN Status - Interface%></h2>
69 <fieldset class="cbi-section">
70 <legend id="diag-rc-legend"><%:Collecting data...%></legend>
71 <span id="diag-rc-output">
72 <img src="<%=resource%>/icons/loading.gif" alt="<%:Loading%>" style="vertical-align: middle;" />
77 <style type="text/css">
87 background-color: rgb(144, 240, 144);
90 background-color: rgb(240, 144, 144);
94 box-shadow: 0px 2px 5px -3px;
96 margin: 8px 3px 0px 3px;
99 padding: 5px 10px 8px 10px;
102 #mwan_statuslog_text {