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');
18 var interfaceStatus = '';
19 for ( var i = 0; i < mArray.wans.length; i++ )
23 switch (mArray.wans[i].status)
26 status = '<%:Online (tracking active)%>';
30 status = '<%:Online (tracking off)%>';
34 status = '<%:Offline%>';
38 status = '<%:Disabled%>';
42 interfaceStatus += String.format(
43 '<span class="%s"><strong>%s (<a href="%q">%s</a>)</strong><br />%s</span>',
44 css, mArray.wans[i].name, mArray.wans[i].link, mArray.wans[i].ifname, status
47 statusDiv.innerHTML = interfaceStatus;
51 statusDiv.innerHTML = '<strong><%:No MWAN interfaces found%></strong>';
54 var logs = document.getElementById('mwan_statuslog_text');
57 var mwanLog = '<%:Last 50 MWAN systemlog entries. Newest entries sorted at the top :%>';
58 logs.innerHTML = String.format('<pre>%s<br /><br />%s</pre>', mwanLog, mArray.mwanlog[0]);
62 logs.innerHTML = '<strong><%:No MWAN systemlog history found%></strong>';
68 <div id="mwan_interface_status">
69 <fieldset id="interface_field" class="cbi-section">
70 <legend><%:MWAN Interface Live Status%></legend>
71 <div id="mwan_status_text"><img src="<%=resource%>/icons/loading.gif" alt="<%:Loading%>" style="vertical-align:middle" /><%:Collecting data...%></div>
73 <fieldset class="cbi-section">
74 <legend><%:MWAN Interface Systemlog%></legend>
75 <div id="mwan_statuslog_text"><img src="<%=resource%>/icons/loading.gif" alt="<%:Loading%>" style="vertical-align:middle" /><%:Collecting data...%></div>
79 <style type="text/css">
89 background-color: rgb(144, 240, 144);
92 background-color: rgb(240, 144, 144);
96 box-shadow: 0px 2px 5px -3px;
98 margin: 8px 3px 0px 3px;
101 padding: 5px 10px 8px 10px;
104 #mwan_statuslog_text {