]> Dogcows Code - chaz/chatty/blobdiff - root/tt/wrapper.tt
implemented session tracking and authentication
[chaz/chatty] / root / tt / wrapper.tt
index cfcaf5bd5319af617fae4832b72337a7eca43c78..7599375496479d2ef5ef3f76523a27faca3f2e14 100644 (file)
@@ -4,15 +4,40 @@
                <meta charset="utf-8">
                <meta name="author" content="Charles McGarvey">
                <meta name="description" content="This is a chat application in Catalyst!">
-               <link rel="stylesheet" type="text/css" href="[% c.uri_for('static/css/common.css') %]">
+               <link rel="stylesheet" type="text/css" href="[% c.uri_for('/static/css/common.css') %]">
                <title>Chatty - [% template.title or 'Toy chat application written in Perl/Catalyst' %]</title>
        </head>
        <body>
                <div id="outer">
+[% IF error -%]
+                               <p id="error">[% error %]</p>
+[% END -%]
+[% IF message -%]
+                               <p id="message">[% message %]</p>
+[% END -%]
                        <div id="inner">
 [% content %]
+                               <hr>
+                               <div id="footer">
+                                       Copyright &copy; 2011 Charles McGarvey. Some rights reserved.
+                                       <div class="right">
+                                               <a href="http://www.catalystframework.org/">
+                                                       <img src="[% c.uri_for('/static/img/btn_88x31_built_shadow.png') %]">
+                                               </a>
+                                       </div>
+                               </div>
                        </div>
                </div>
-               <script type="text/javascript" src="[% static('js/jquery.tools-1.2.6.min.js') %]"></script>
+               <script type="text/javascript" src="[% c.uri_for('/static/js/jquery.tools-1.2.6.min.js') %]"></script>
+               <script type="text/javascript">
+[% IF error -%]
+                       $(function () {
+                                       $("#error").expose({color: '#999'}).click(function() {
+                                                       $.mask.close();
+                                                       $(this).remove();
+                                               });
+                       });
+[% END -%]
+               </script>
        </body>
 </html>
This page took 0.017905 seconds and 4 git commands to generate.