$('form').validationEngine();
[% END -%]
<h1>Join a Chat Room</h1>
+[% IF rooms.size -%]
<table>
[% FOREACH room IN rooms -%]
<tr>
</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 %]
<div id="inner">
<div class="right">
[% IF c.user_exists -%]
- <a href="[% c.uri_for_action('logout') %]">Log Out</a>
+ Logged in as [% c.user.obj.username %]. <a href="[% c.uri_for_action('logout') %]">Log Out</a>
[% END -%]
</div>
- <img src="[% c.uri_for('/static/img/chat.png') %]" alt="Chat!">
+ <a href="[% c.uri_for('/') %]">
+ <img src="[% c.uri_for('/static/img/chat.png') %]" alt="Chat!">
+ </a>
[% content -%]
<div id="footer">
Copyright © 2011 Charles McGarvey. Some rights reserved.