summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-mwan3/luasrc/view/mwan/status_detail.htm
blob: 0ff2824ed28b8405818586654f359278c59931e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<%+header%>

<ul class="cbi-tabmenu">
	<li class="cbi-tab-disabled"><a href="<%=luci.dispatcher.build_url("admin/status/mwan/overview")%>"><%:Interface Status%></a></li>
	<li class="cbi-tab"><a href="<%=luci.dispatcher.build_url("admin/status/mwan/detail")%>"><%:Detailed Status%></a></li>
	<li class="cbi-tab-disabled"><a href="<%=luci.dispatcher.build_url("admin/status/mwan/diagnostics")%>"><%:Diagnostics%></a></li>
	<li class="cbi-tab-disabled"><a href="<%=luci.dispatcher.build_url("admin/status/mwan/troubleshooting")%>"><%:Troubleshooting%></a></li>
</ul>

<script type="text/javascript" src="<%=resource%>/cbi.js"></script>
<script type="text/javascript">//<![CDATA[
	XHR.poll(5, '<%=luci.dispatcher.build_url("admin", "status", "mwan", "detailed_status")%>', null,
		function(x, mArray)
		{
			var status = document.getElementById('mwan_detail_text');
			if (mArray.mwandetail)
			{
				status.innerHTML = String.format('<pre>%s</pre>', mArray.mwandetail[0]);
			}
			else
			{
				status.innerHTML = '<strong><%:No detailed status information available%></strong>';
			}
		}
	);
//]]></script>

<div id="mwan_detail_status">
	<fieldset class="cbi-section">
		<legend><%:MWAN Detailed Status%></legend>
		<div id="mwan_detail_text"><img src="<%=resource%>/icons/loading.gif" alt="<%:Loading%>" style="vertical-align:middle" /><%:Collecting data...%></div>
	</fieldset>
</div>

<style type="text/css">
  #mwan_detail_text {
	padding: 20px;
	text-align: left;
  }
</style>

<%+footer%>