2 <html xmlns:ng="http://angularjs.org">
3 <script src="http://code.angularjs.org/angular-0.9.12.min.js" ng:autobind></script>
4 <style type="text/css">
5 th { text-align: right }
9 function RedisCntl($xhr,$defer) {
12 this.fetch = function() {
13 self.url = '/_redis' + '?callback=JSON_CALLBACK';
14 $xhr('JSON', self.url, function(code, response) {
16 self.response = response;
18 $defer( self.fetch, 5000 ); // 5s
22 RedisCntl.$inject = ['$xhr','$defer'];
24 <div ng:controller="RedisCntl">
25 {{response.status['poll.start']}} -
26 {{response.status['poll.finish']}}
28 <tr><th colspan=2>queued</th><td>{{response.status['poll.queued']}}</td></tr>
29 <tr><th rowspan=2>ping</th><th>OK</th><td>{{response.status['poll.ping.ok']}}</td></tr>
30 <tr><th>ERROR</th><td>{{response.status['poll.ping.error']}}</td></tr>
31 <tr><th colspan=2>ADSL</th><td>{{response.status['poll.adsl.ok']}}</td></tr>
34 <p><input type=checkbox name=debug>