<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <title>#{get 'title' /}</title>		
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        <link rel="stylesheet" type="text/css" media="screen" href="@{'/public/stylesheets/main.css'}" />
        <link rel="stylesheet" type="text/css" media="screen" href="@{'/public/stylesheets/play-fbconnect.min.css'}" />
        <link rel="shortcut icon" type="image/png" href="@{'/public/images/favicon.png'}" />
        <script src="@{'/public/javascripts/jquery-1.3.2.min.js'}" type="text/javascript"></script>
        <script src="@{'/public/javascripts/jquery-ui-1.7.2.custom.min.js'}" type="text/javascript"></script>
    </head>
    <body>
        
        <div id="notice">
            This app is just a demo to show how to build a Google App Engine application using <a href="http://www.playframework.org">Play</a> as application framework.
            <br /> It is really inspired from the <a href="http://tadalist.com/">Ta-da Lists</a> application from 37Signals. If you like the idea,
            please use the real Ta-da Lists, not this one !
        </div>
        
        #{if user}
            <div id="user">
                You're logged as ${user}, <a href="@{Application.logout()}">Logout</a>
            </div>
        #{/if}
        
        #{if flash.error}
            <p class="error">${flash.error}</p>
        #{/if}
        #{if flash.success}
            <p class="success">${flash.success}</p>
        #{/if}
        
        <div id="main">
            #{doLayout /} 
        </div>
        
    </body>
</html>
