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.
7 <script type="text/javascript">//<![CDATA[
8 XHR.poll(5, '<%=luci.dispatcher.build_url("admin", "status", "mwan", "interface_status")%>', null,
11 var statusDiv = document.getElementById('mwan_status_text');
12 if (status.interfaces)
15 for ( var iface in status.interfaces)
18 switch (status.interfaces[iface].status)
21 state = '<%:Online (tracking active)%>';
24 state = '<%:Offline%>';
27 state = '<%:Disabled%>';
30 statusview += String.format(
31 '<div><strong>Interface: </strong>%s</div>',
34 statusview += String.format(
35 '<div><strong>Status: </strong>%s</div></br></br>',
39 statusDiv.innerHTML = statusview;
43 statusDiv.innerHTML = '<strong><%:No MWAN interfaces found%></strong>';
49 <fieldset id="interface_field" class="cbi-section">
50 <legend><%:MWAN Interfaces%></legend>
51 <div id="mwan_status_text">
52 <img src="<%=resource%>/icons/loading.gif" alt="<%:Loading%>" style="vertical-align:middle" /><%:Collecting data...%>