some user interface tweaks
authorCharles McGarvey <chazmcgarvey@brokenzipper.com>
Wed, 4 Jan 2012 02:14:05 +0000 (19:14 -0700)
committerCharles McGarvey <chazmcgarvey@brokenzipper.com>
Wed, 4 Jan 2012 02:14:05 +0000 (19:14 -0700)
root/tt/chat/list.tt
root/tt/wrapper.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 %]
index f4d497f9e55c81e9939d2c1b4a3d7ae63886ba02..87d510628de4799a1f458950054dd445a607bf23 100644 (file)
                        <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 &copy; 2011 Charles McGarvey. Some rights reserved.
This page took 0.025436 seconds and 4 git commands to generate.