1403de1922337e65d84b5aa575d942806e755195
[project/luci.git] / applications / luci-app-mwan3 / luasrc / view / mwan / overview_detailed.htm
1 <%+header%>
2
3 <ul class="cbi-tabmenu">
4         <li class="cbi-tab-disabled"><a href="<%=luci.dispatcher.build_url("admin/status/mwan/overview_interface")%>"><%:Interface Status%></a></li>
5         <li class="cbi-tab"><a href="<%=luci.dispatcher.build_url("admin/status/mwan/overview_detailed")%>"><%:Detailed Status%></a></li>
6 </ul>
7
8 <script type="text/javascript" src="<%=resource%>/cbi.js"></script>
9 <script type="text/javascript">//<![CDATA[
10         XHR.poll(5, '<%=luci.dispatcher.build_url("admin", "status", "mwan", "detailed_status")%>', null,
11                 function(x, mArray)
12                 {
13                         var status = document.getElementById('mwan_detail_text');
14                         if (mArray.mwandetail)
15                         {
16                                 status.innerHTML = String.format('<pre>%s</pre>', mArray.mwandetail[0]);
17                         }
18                         else
19                         {
20                                 status.innerHTML = '<strong><%:No detailed status information available%></strong>';
21                         }
22                 }
23         );
24 //]]></script>
25
26 <div id="mwan_detail_status">
27         <fieldset class="cbi-section">
28                 <legend><%:MWAN Detailed Status%></legend>
29                 <div id="mwan_detail_text"><img src="<%=resource%>/icons/loading.gif" alt="<%:Loading%>" style="vertical-align:middle" /><%:Collecting data...%></div>
30         </fieldset>
31 </div>
32
33 <style type="text/css">
34   #mwan_detail_text {
35         padding: 20px;
36         text-align: left;
37   }
38 </style>
39
40 <%+footer%>