X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=root%2Ftt%2Fwrapper.tt;h=82e3403d0bc870099694a85e76f57f66fcaccc73;hb=57f9bfbe0bd9f89a602c5f16bff100af84ae7f83;hp=951a19e4fb007c5bb161ff8e7f595c7e81736687;hpb=ce10e1dfe911071e99c51edbcd34b74b2615f847;p=chaz%2Fchatty diff --git a/root/tt/wrapper.tt b/root/tt/wrapper.tt index 951a19e..82e3403 100644 --- a/root/tt/wrapper.tt +++ b/root/tt/wrapper.tt @@ -4,24 +4,64 @@ - + + Chatty - [% template.title or 'Toy chat application written in Perl/Catalyst' %]
+[% IF error -%] +
+ [% error %] +
+[% END -%] +[% IF message -%] +
+ [% message %] +
+[% END -%]
-[% content %] -
+
+[% IF c.user_exists -%] + Logged in as [% c.user.obj.username %]. Log Out +[% END -%] +
+ + Chat! + +[% content -%]
- + + + +[% TRY; INCLUDE js_include; CATCH; ''; END -%] +