mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-09-12 03:14:48 +08:00
21 lines
798 B
HTML
21 lines
798 B
HTML
<script type="text/javascript">//<![CDATA[
|
|
XHR.poll(5, '<%=url("admin/services/agentflow_status")%>', null, function(x, st) {
|
|
var el = document.getElementById('agentflow_status');
|
|
if (st && el) {
|
|
if (!st.running) {
|
|
el.innerHTML = '<br/><em style="color:red"><%:The AgentFlow service is not running.%></em>';
|
|
} else {
|
|
el.innerHTML = '<br/><em style="color:green"><%:The AgentFlow service is running.%></em>'
|
|
+ "<br/><br/><input class=\"btn cbi-button cbi-button-apply\" type=\"button\" value=\" <%:Click to open AgentFlow%> \" onclick=\"window.open('http://" + window.location.hostname + ":" + st.port + "/')\"/>";
|
|
}
|
|
}
|
|
});
|
|
//]]></script>
|
|
|
|
<fieldset class="cbi-section">
|
|
<legend><%:Status%></legend>
|
|
<p id="agentflow_status">
|
|
<em><%:Collecting data...%></em>
|
|
</p>
|
|
</fieldset>
|