about summary refs log tree commit diff
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2010-04-14 10:38:03 +0200
committerfranck cuny <franck@lumberjaph.net>2010-04-14 10:38:03 +0200
commit3df3007c7671e729997da08eebde7f6248ab847b (patch)
treedf653cd27f5b470f3f308f6f0588138f8f605903
parentadd POD (diff)
downloadpresque-3df3007c7671e729997da08eebde7f6248ab847b.tar.gz
add templates
-rw-r--r--templates/index.html7
-rw-r--r--templates/job.html21
2 files changed, 28 insertions, 0 deletions
diff --git a/templates/index.html b/templates/index.html
new file mode 100644
index 0000000..3d26f52
--- /dev/null
+++ b/templates/index.html
@@ -0,0 +1,7 @@
+<html>
+   <head>
+      <title>Presque - a redis based message queue</title>
+   </head>
+   <body>
+   </body>
+ </html>
diff --git a/templates/job.html b/templates/job.html
new file mode 100644
index 0000000..e746de1
--- /dev/null
+++ b/templates/job.html
@@ -0,0 +1,21 @@
+% my $queue = $_[0]->{queue};
+% my $jobs = $_[0]->{jobs};
+% my $job_count = $_[0]->{job_count};
+% my $queue_size = $_[0]->{queue_size};
+
+<html>
+   <head>
+      <title>jobs in queue <%= $queue  %></title>
+   </head>
+   <body>
+        queue name: <%= $queue %><br>
+        queue objects: <%=  $queue_size %><br>
+        job count: <%= $job_count %><br>
+    <p>latest 10 jobs</p>
+     <ul>
+       <% for my $job (@$jobs) { %>
+         <li><%= $job %></li>
+       <% } %>
+     </ul>
+   </body>
+ </html>