diff options
| author | franck cuny <franck@lumberjaph.net> | 2010-04-14 18:12:26 +0200 |
|---|---|---|
| committer | franck cuny <franck@lumberjaph.net> | 2010-04-14 18:12:26 +0200 |
| commit | 4410f055dde7e77492e6a1beeaf00d20ec6b6986 (patch) | |
| tree | ba75a16b8962909469fa7300ec7d24d86eb9d545 /templates/index.html | |
| parent | return a json object (diff) | |
| download | presque-4410f055dde7e77492e6a1beeaf00d20ec6b6986.tar.gz | |
cleanup
Diffstat (limited to 'templates/index.html')
| -rw-r--r-- | templates/index.html | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/templates/index.html b/templates/index.html index 3d26f52..ee2c701 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,7 +1,24 @@ <html> + <head> - <title>Presque - a redis based message queue</title> + <title>Presque - a redis/tatsumaki based message queue</title> + <script src="http://code.jquery.com/jquery-1.4.2.min.js"></script> + <script type="text/javascript" language="javascript"> + $(document).ready(function() { + $.getJSON('/stats/', function(stats) { + $("#stats").append('<span>server:'+stats.redis+'</span><br />').append('<span>queues total: '+stats.size+'</span>'); + for(i=0;i<stats.queues.length;i++) { + $("#queues").append('<tr><td>'+stats.queues[i]+'</td></tr>'); + } + }) + }) + </script> </head> + <body> + <h1>Presque - a redis/tatsumaki based message queue</h1> + <div id="stats"></div> + <ul id="queues"></ul> </body> + </html> |
