]> Dogcows Code - chaz/chatty/blobdiff - root/tt/chat/list.tt
some user interface tweaks
[chaz/chatty] / root / tt / chat / list.tt
index 1e30b651ba6ec00ebbe6117c7fefa3a6b85f6579..579abdbb07673723be968a1906e261d368ca3135 100644 (file)
@@ -3,6 +3,7 @@
 $('form').validationEngine();
 [% END -%]
 <h1>Join a Chat Room</h1>
+[% IF rooms.size -%]
 <table>
 [% FOREACH room IN rooms -%]
 <tr>
@@ -15,5 +16,8 @@ $('form').validationEngine();
 </tr>
 [% END -%]
 </table>
+[% ELSE -%]
+<p>There are no rooms, yet.  Be the first to create one!</p>
+[% END -%]
 <h2>Create Your Own Room</h2>
 [% form.render %]
This page took 0.019243 seconds and 4 git commands to generate.