3 <ul class="cbi-tabmenu">
4 <li class="cbi-tab"><a href="<%=luci.dispatcher.build_url("admin/status/mwan/overview")%>"><%:Interface Status%></a></li>
5 <li class="cbi-tab-disabled"><a href="<%=luci.dispatcher.build_url("admin/status/mwan/detail")%>"><%:Detailed Status%></a></li>
6 <li class="cbi-tab-disabled"><a href="<%=luci.dispatcher.build_url("admin/status/mwan/diagnostics")%>"><%:Diagnostics%></a></li>
7 <li class="cbi-tab-disabled"><a href="<%=luci.dispatcher.build_url("admin/status/mwan/troubleshooting")%>"><%:Troubleshooting%></a></li>
10 <script type="text/javascript" src="<%=resource%>/cbi.js"></script>
11 <script type="text/javascript">//<![CDATA[
12 XHR.poll(5, '<%=luci.dispatcher.build_url("admin", "status", "mwan", "interface_status")%>', null,
15 var statusDiv = document.getElementById('mwan_status_text');
16 if (status.interfaces)
19 for ( var iface in status.interfaces)
23 switch (status.interfaces[iface].status)
26 state = '<%:Online (tracking active)%>';
30 state = '<%:Online (tracking off)%>';
34 state = '<%:Offline%>';
38 state = '<%:Disabled%>';
42 statusview += String.format(
43 '<span class="%s"><strong>%s</strong><br />%s</span>',
49 statusDiv.innerHTML = statusview;
53 statusDiv.innerHTML = '<strong><%:No MWAN interfaces found%></strong>';
59 <div id="mwan_interface_status">
60 <fieldset id="interface_field" class="cbi-section">
61 <legend><%:MWAN Interface Live Status%></legend>
62 <div id="mwan_status_text"><img src="<%=resource%>/icons/loading.gif" alt="<%:Loading%>" style="vertical-align:middle" /><%:Collecting data...%></div>
66 <style type="text/css">
76 background-color: rgb(144, 240, 144);
79 background-color: rgb(240, 144, 144);
83 box-shadow: 0px 2px 5px -3px;
85 margin: 8px 3px 0px 3px;
88 padding: 5px 10px 8px 10px;
91 #mwan_statuslog_text {