testappproj/templates/base.html
author amit@thunder
Mon, 14 Jun 2010 01:00:59 +0530
changeset 3 34d0c21e3352
parent 0 0b061d58aea3
permissions -rw-r--r--
Checking if exam has been previously done by the user or not

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <script type="text/javascript" src="/static/jquery.js"></script>
    <script type="text/javascript" src="/static/appjs.js"></script>
    <title>Fossee Test</title>
    <link rel="stylesheet" href="/static/pykata.css" type="text/css">
    </head>
  <body>
    <div id="container">
      <div id="header">
      <div id="nav">
          <a href="/">Home</a> |
          <a href="/accounts/register">Register</a>|
          {% if user %}
           
	  {% if user.username %} 
		     {{ user.username }} |
		<a href="/accounts/logout">Sign out</a> 
          {% else %}
          	<a href="/accounts/login">Sign in</a>{% endif %}
          {% endif %}
          <br /><br />
          </div>
      </div>
      <div id="content">
          {% block body %}
          {% endblock %}
      </div>
      <div id="footer" style="height:50px; text-align:center;">
        <strong>FOSSEE, 2010</strong><br />
        <em>(Powered by MHRD)</em>
      </div>
    </div>

    {% block scripts %}
    {% endblock %}
    <!-- Google Analytics tracking -->
    <script type="text/javascript">
      var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
      document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    </script>
    <script type="text/javascript">
      try {
      var pageTracker = _gat._getTracker("UA-7813330-1");
      pageTracker._trackPageview();
      } catch(err) {}</script>
  </body>
</html>