luci-app-mwan3: remove notMonitored status information
[project/luci.git] / applications / luci-app-mwan3 / luasrc / view / mwan / overview_status_interface.htm
1 <%#
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.
5 -%>
6
7 <script type="text/javascript">//<![CDATA[
8 XHR.poll(5, '<%=luci.dispatcher.build_url("admin", "status", "mwan", "interface_status")%>', null,
9                 function(x, status)
10                 {
11                         var statusDiv = document.getElementById('mwan_status_text');
12                         if (status.interfaces)
13                         {
14                                 var statusview = '';
15                                 for ( var iface in status.interfaces)
16                                 {
17                                         var state = '';
18                                         switch (status.interfaces[iface].status)
19                                         {
20                                                 case 'online':
21                                                         state = '<%:Online (tracking active)%>';
22                                                         break;
23                                                 case 'offline':
24                                                         state = '<%:Offline%>';
25                                                         break;
26                                                 default:
27                                                         state = '<%:Disabled%>';
28                                                         break;
29                                         }
30                                         statusview += String.format(
31                                                 '<div><strong>Interface: </strong>%s</div>',
32                                                 iface
33                                         );
34                                         statusview += String.format(
35                                                 '<div><strong>Status: </strong>%s</div></br></br>',
36                                                 state
37                                         );
38                                 }
39                                 statusDiv.innerHTML = statusview;
40                         }
41                         else
42                         {
43                                 statusDiv.innerHTML = '<strong><%:No MWAN interfaces found%></strong>';
44                         }
45                 }
46         );
47 //]]></script>
48
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...%>
53         </div>
54 </fieldset>