<script type="text/javascript">
XHR.poll(3, '<%=url([[admin]], [[services]], [[supervisord]], [[status]])%>', null,
	function(x, data) {
		var tb = document.getElementById('status');
		if (data && tb) {
			if (data.running) {
				var links = '<em><b><font color=green>Supervisord <%:RUNNING%></font></b></em>';
				tb.innerHTML = links;
			} else {
				tb.innerHTML = '<em><b><font color=red>Supervisord <%:NOT RUNNING%></font></b></em>';
			}
		}
	}
);
</script>
<style></style>
<fieldset class="cbi-section">
	<p id="status">
		<em><%:Collecting data...%></em>
	</p>
</fieldset>