testappproj/templates/base.html
changeset 0 0b061d58aea3
equal deleted inserted replaced
-1:000000000000 0:0b061d58aea3
       
     1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
       
     2 <html>
       
     3   <head>
       
     4     <script type="text/javascript" src="/static/jquery.js"></script>
       
     5     <script type="text/javascript" src="/static/appjs.js"></script>
       
     6     <title>Fossee Test</title>
       
     7     <link rel="stylesheet" href="/static/pykata.css" type="text/css">
       
     8     </head>
       
     9   <body>
       
    10     <div id="container">
       
    11       <div id="header">
       
    12       <div id="nav">
       
    13           <a href="/">Home</a> |
       
    14           <a href="/accounts/register">Register</a>|
       
    15           {% if user %}
       
    16            
       
    17 	  {% if user.username %} 
       
    18 		     {{ user.username }} |
       
    19 		<a href="/accounts/logout">Sign out</a> 
       
    20           {% else %}
       
    21           	<a href="/accounts/login">Sign in</a>{% endif %}
       
    22           {% endif %}
       
    23           <br /><br />
       
    24           </div>
       
    25       </div>
       
    26       <div id="content">
       
    27           {% block body %}
       
    28           {% endblock %}
       
    29       </div>
       
    30       <div id="footer" style="height:50px; text-align:center;">
       
    31         <strong>FOSSEE, 2010</strong><br />
       
    32         <em>(Powered by MHRD)</em>
       
    33       </div>
       
    34     </div>
       
    35 
       
    36     {% block scripts %}
       
    37     {% endblock %}
       
    38     <!-- Google Analytics tracking -->
       
    39     <script type="text/javascript">
       
    40       var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
       
    41       document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
       
    42     </script>
       
    43     <script type="text/javascript">
       
    44       try {
       
    45       var pageTracker = _gat._getTracker("UA-7813330-1");
       
    46       pageTracker._trackPageview();
       
    47       } catch(err) {}</script>
       
    48   </body>
       
    49 </html>