summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2010-04-14 18:12:26 +0200
committerfranck cuny <franck@lumberjaph.net>2010-04-14 18:12:26 +0200
commit4410f055dde7e77492e6a1beeaf00d20ec6b6986 (patch)
treeba75a16b8962909469fa7300ec7d24d86eb9d545 /templates
parentreturn a json object (diff)
downloadpresque-4410f055dde7e77492e6a1beeaf00d20ec6b6986.tar.gz
cleanup
Diffstat (limited to 'templates')
-rw-r--r--templates/index.html19
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>