pytask/templates/base.html
author Madhusudan.C.S <madhusudancs@gmail.com>
Mon, 17 Jan 2011 02:51:55 +0530
changeset 433 b8b8337efbb8
parent 425 e15749fab2e4
child 439 66bdb28ebaf6
permissions -rw-r--r--
Restructure the entire base template and move the left sidebar to another subtemplate.

<html>
<head>
  <title>
    {% block title %}PyTasks{% endblock %}
  </title>

  {% comment %}Load site wide CSS here. Additional styling must be
  loaded in the block that follows{% endcomment %}
  <link rel=stylesheet href="/pytask/static/css/base.css" type="text/css" >
  <link type="text/css"
      href="/pytask/static/css/jquery/ui/cupertino/jquery-ui-1.8.8.custom.css"
      rel="stylesheet" />

  {% block css %}
  {% endblock %}


  {% comment %}Load site wide javascript here. Additional scripts must
  be loaded in the block that follows{% endcomment %}

  <script type="text/javascript"
      src="/pytask/static/jquery/jquery-1.4.4.min.js">
  </script>
  <script type="text/javascript"
      src="/pytask/static/jquery/jquery-ui-1.8.8.custom.min.js">
  </script>
  {% block js %}
  {% endblock %}
</head>


<body>
  <div id="wrapper">
    <div id="header">
      <h2><a href="{% url home_page %}">PyTask</a></h2>
    </div>

    <div id="container">
      <div id="left">
        {% include '_left_sidebar.html' %}

        {% block leftsidebar %}
          {% comment %}Additional Left Sidebar elements go here{% endcomment %}
        {% endblock leftsidebar %}
      </div>

      <div id="center">
        {% block content %}This is the default content{% endblock content %}
      </div>

      <div id="right">
        {% block rightsidebar %}
          {% comment %}Additional Right Sidebar elements go here{% endcomment %}
        {% endblock rightsidebar %}
      </div>

      <div class="clearer">
      </div>
    </div>
    <div id="footer">
      Designed by <a href="http://fossee.in">FOSSEE</a>
    </div>
</div> 

</body>
</html>