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)
19 switch (status.interfaces[iface].status)
22 state = '<%:Online (tracking active)%
>';
26 state = '<%:Online (tracking off)%
>';
30 state = '<%:Offline%
>';
34 state = '<%:Disabled%
>';
38 statusview += String.format(
39 '
<span class=
"%s"><strong>%s
</strong><br />%s
</span>',
45 statusDiv.innerHTML = statusview;
49 statusDiv.innerHTML = '
<strong><%:No MWAN interfaces found%
></strong>';
55 <fieldset id=
"interface_field" class=
"cbi-section">
56 <legend><%:MWAN Interface Live Status%
></legend>
57 <div id=
"mwan_status_text">
58 <img src=
"<%=resource%>/icons/loading.gif" alt=
"<%:Loading%>" style=
"vertical-align:middle" /><%:Collecting data...%
>