summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-mwan3/luasrc/view/mwan/status_troubleshooting.htm
blob: 77d009231eb76fb3de606c55e8eefff7fd54a729 (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
<%#
 Copyright 2014 Aedan Renner <chipdankly@gmail.com>
 Copyright 2018 Florian Eckert <fe@dev.tdt.de>
 Licensed to the public under the GNU General Public License v2.
-%>

<%+header%>

<ul class="cbi-tabmenu">
	<li class="cbi-tab-disabled"><a href="<%=luci.dispatcher.build_url("admin/status/mwan/overview")%>"><%:Interface%></a></li>
	<li class="cbi-tab-disabled"><a href="<%=luci.dispatcher.build_url("admin/status/mwan/detail")%>"><%:Detail%></a></li>
	<li class="cbi-tab-disabled"><a href="<%=luci.dispatcher.build_url("admin/status/mwan/diagnostics")%>"><%:Diagnostics%></a></li>
	<li class="cbi-tab"><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(15, '<%=luci.dispatcher.build_url("admin", "status", "mwan", "troubleshooting_display")%>', null,
		function(x)
		{
			var legend = document.getElementById('diag-rc-legend');
			var output = document.getElementById('diag-rc-output');
			legend.style.display = 'none';
			output.innerHTML = String.format('<pre>%h</pre>', x.responseText);
		}
	);
//]]></script>

<div class="cbi-map">
	<h2 name="content"><%:MWAN Status - Troubleshooting%></h2>
	<%if not require("luci.sys").init.enabled("mwan3") then%>
	<div><strong><%:INFO: MWAN not running%></strong></div>
	<%end%>
	<fieldset class="cbi-section">
		<legend id="diag-rc-legend"><%:Collecting data...%></legend>
		<span id="diag-rc-output">
			<img src="<%=resource%>/icons/loading.gif" alt="<%:Loading%>" style="vertical-align: middle;" />
		</span>
	</fieldset>
</div>

<%+footer%>