pytask/templates/base.html
changeset 433 b8b8337efbb8
parent 425 e15749fab2e4
child 439 66bdb28ebaf6
equal deleted inserted replaced
432:27cc6671193a 433:b8b8337efbb8
     1 <html>
     1 <html>
     2 <head>
     2 <head>
     3     <title>{% block title %}PyTasks{% endblock %}</title>
     3   <title>
     4     {% comment %}Load site wide CSS here. Additional styling must be
     4     {% block title %}PyTasks{% endblock %}
     5     loaded in the block that follows{% endcomment %}
     5   </title>
     6     <link rel=stylesheet href="/pytask/static/css/base.css" type="text/css" >
       
     7     <link type="text/css"
       
     8         href="/pytask/static/css/jquery/ui/cupertino/jquery-ui-1.8.8.custom.css"
       
     9         rel="stylesheet" /> 
       
    10     {% block css %}
       
    11     {% endblock %}
       
    12 
     6 
    13     {% comment %}Load site wide javascript here. Additional scripts must
     7   {% comment %}Load site wide CSS here. Additional styling must be
    14     be loaded in the block that follows{% endcomment %}
     8   loaded in the block that follows{% endcomment %}
    15     <script type="text/javascript"
     9   <link rel=stylesheet href="/pytask/static/css/base.css" type="text/css" >
    16         src="/pytask/static/jquery/jquery-1.4.4.min.js">
    10   <link type="text/css"
    17     </script>
    11       href="/pytask/static/css/jquery/ui/cupertino/jquery-ui-1.8.8.custom.css"
    18     <script type="text/javascript"
    12       rel="stylesheet" />
    19         src="/pytask/static/jquery/jquery-ui-1.8.8.custom.min.js">
    13 
    20     </script>
    14   {% block css %}
    21     {% block js %}
    15   {% endblock %}
    22     {% endblock %}
    16 
       
    17 
       
    18   {% comment %}Load site wide javascript here. Additional scripts must
       
    19   be loaded in the block that follows{% endcomment %}
       
    20 
       
    21   <script type="text/javascript"
       
    22       src="/pytask/static/jquery/jquery-1.4.4.min.js">
       
    23   </script>
       
    24   <script type="text/javascript"
       
    25       src="/pytask/static/jquery/jquery-ui-1.8.8.custom.min.js">
       
    26   </script>
       
    27   {% block js %}
       
    28   {% endblock %}
    23 </head>
    29 </head>
    24 {% load user_tags %}
    30 
       
    31 
    25 <body>
    32 <body>
    26 <div id="wrapper">
    33   <div id="wrapper">
    27     <div id="header">
    34     <div id="header">
    28         <h2><a href="{% url home_page %}">PyTasks</a></h2>
    35       <h2><a href="{% url home_page %}">PyTask</a></h2>
    29     </div>
    36     </div>
       
    37 
    30     <div id="container">
    38     <div id="container">
    31         <div id="left">
    39       <div id="left">
    32         <ul id="nav">
    40         {% include '_left_sidebar.html' %}
    33             <li><a href="{% url home_page %}" title="home">Home</a></li>
    41 
    34 	    <br />
    42         {% block leftsidebar %}
    35                 <li><a href="{% url browse_tasks %}" title="tasks">Tasks</a></li>
    43           {% comment %}Additional Left Sidebar elements go here{% endcomment %}
    36                 <li><a href="{% url browse_textbooks %}" title="textbook">Textbooks</a></li>
    44         {% endblock leftsidebar %}
    37                 <br />
    45       </div>
    38             {% if user.is_authenticated %}
    46 
    39                 <li><a href="{% url browse_notifications %}" title="notifications">
    47       <div id="center">
    40                   {{ user|notf_dsp }}
    48         {% block content %}This is the default content{% endblock content %}
    41                 </a></li>
    49       </div>
    42                 <br>
    50 
    43                 <li><a href="{% url view_profile %}">Profile</a></li>
    51       <div id="right">
    44                 <li><a href="{% url auth_logout %}">Logout</a></li>
    52         {% block rightsidebar %}
    45             {% else %}
    53           {% comment %}Additional Right Sidebar elements go here{% endcomment %}
    46                 <li><a href="{% url registration_register %}" title="register">Register</a></li>
    54         {% endblock rightsidebar %}
    47                 <li><a href="{% url auth_login %}" title="login">Login</a></li>
    55       </div>
    48             {% endif %}
    56 
    49         </ul>
    57       <div class="clearer">
    50         </div>
    58       </div>
    51         <div id="center">
       
    52             {% block content %}This is the default content{% endblock %}
       
    53         </div>
       
    54         <div id="right">
       
    55         </div>
       
    56         <div class="clearer">
       
    57         </div>
       
    58     </div>
    59     </div>
    59     <div id="footer">
    60     <div id="footer">
    60     Designed by <a href="http://fossee.in">FOSSEE</a>
    61       Designed by <a href="http://fossee.in">FOSSEE</a>
    61     </div>
    62     </div>
    62 </div> 
    63 </div> 
    63 
    64 
    64 </body>
    65 </body>
    65 </html>
    66 </html>