]> Dogcows Code - chaz/chatty/blobdiff - root/tt/chat/list.tt
create, list, and room viewing implemented
[chaz/chatty] / root / tt / chat / list.tt
diff --git a/root/tt/chat/list.tt b/root/tt/chat/list.tt
new file mode 100644 (file)
index 0000000..1e30b65
--- /dev/null
@@ -0,0 +1,19 @@
+[% META title = 'Join a Chat Room' -%]
+[% BLOCK js -%]
+$('form').validationEngine();
+[% END -%]
+<h1>Join a Chat Room</h1>
+<table>
+[% FOREACH room IN rooms -%]
+<tr>
+       <td>
+               <a href="[% c.uri_for_action('/chat/view', room.id) %]">[% room.name %]</a>
+       </td>
+       <td>
+               [% room.created %]
+       </td>
+</tr>
+[% END -%]
+</table>
+<h2>Create Your Own Room</h2>
+[% form.render %]
This page took 0.016444 seconds and 4 git commands to generate.