luci-app-travelmate: sync with travelmate 1.2.0
[project/luci.git] / applications / luci-app-mwan3 / luasrc / view / mwan / status_troubleshooting.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 <%+header%>
8
9 <ul class="cbi-tabmenu">
10         <li class="cbi-tab-disabled"><a href="<%=luci.dispatcher.build_url("admin/status/mwan/overview")%>"><%:Interface%></a></li>
11         <li class="cbi-tab-disabled"><a href="<%=luci.dispatcher.build_url("admin/status/mwan/detail")%>"><%:Detail%></a></li>
12         <li class="cbi-tab-disabled"><a href="<%=luci.dispatcher.build_url("admin/status/mwan/diagnostics")%>"><%:Diagnostics%></a></li>
13         <li class="cbi-tab"><a href="<%=luci.dispatcher.build_url("admin/status/mwan/troubleshooting")%>"><%:Troubleshooting%></a></li>
14 </ul>
15
16 <script type="text/javascript" src="<%=resource%>/cbi.js"></script>
17 <script type="text/javascript">//<![CDATA[
18         XHR.poll(15, '<%=luci.dispatcher.build_url("admin", "status", "mwan", "troubleshooting_display")%>', null,
19                 function(x)
20                 {
21                         var legend = document.getElementById('diag-rc-legend');
22                         var output = document.getElementById('diag-rc-output');
23                         legend.style.display = 'none';
24                         output.innerHTML = String.format('<pre>%h</pre>', x.responseText);
25                 }
26         );
27 //]]></script>
28
29 <div class="cbi-map">
30         <h2 name="content"><%:MWAN Status - Troubleshooting%></h2>
31         <%if not require("luci.sys").init.enabled("mwan3") then%>
32         <div><strong><%:INFO: MWAN not running%></strong></div>
33         <%end%>
34         <fieldset class="cbi-section">
35                 <legend id="diag-rc-legend"><%:Collecting data...%></legend>
36                 <span id="diag-rc-output">
37                         <img src="<%=resource%>/icons/loading.gif" alt="<%:Loading%>" style="vertical-align: middle;" />
38                 </span>
39         </fieldset>
40 </div>
41
42 <%+footer%>