X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=root%2Ftt%2Fwrapper.tt;h=82e3403d0bc870099694a85e76f57f66fcaccc73;hb=e26179af9aaf7cae5a0aa68ad87a50e4b1e1aba5;hp=cfcaf5bd5319af617fae4832b72337a7eca43c78;hpb=6d0804a199f1cae7be898b771829c0dfbf2de7f1;p=chaz%2Fchatty diff --git a/root/tt/wrapper.tt b/root/tt/wrapper.tt index cfcaf5b..82e3403 100644 --- a/root/tt/wrapper.tt +++ b/root/tt/wrapper.tt @@ -4,15 +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 -%] +