]> Dogcows Code - chaz/chatty/blobdiff - root/tt/chat/view.tt
create, list, and room viewing implemented
[chaz/chatty] / root / tt / chat / view.tt
diff --git a/root/tt/chat/view.tt b/root/tt/chat/view.tt
new file mode 100644 (file)
index 0000000..bfb4590
--- /dev/null
@@ -0,0 +1,13 @@
+[% META title = 'Live' -%]
+[% BLOCK js -%]
+$('form').validationEngine();
+[% END -%]
+<h1>Room: [% room.name %]</h1>
+[% IF messages.count == 0 -%]
+[% FOREACH msg IN messages -%]
+<p>[% msg.author.username %] ([% msg.posted %]): [% msg.content %]</p>
+[% END -%]
+[% ELSE -%]
+<p>No messages, yet.</p>
+[% END -%]
+[% form.render -%]
This page took 0.016902 seconds and 4 git commands to generate.