templates/base.html
changeset 298 696309b5ad59
parent 295 cfa5c3fd2ddd
equal deleted inserted replaced
297:1d04840fdcb8 298:696309b5ad59
     2 <head>
     2 <head>
     3     <title>{% block title %}PyTasks{% endblock %}</title>
     3     <title>{% block title %}PyTasks{% endblock %}</title>
     4     {% block js_script %} {% endblock %}
     4     {% block js_script %} {% endblock %}
     5     <link rel=stylesheet href="/static/css/base.css" type="text/css" >
     5     <link rel=stylesheet href="/static/css/base.css" type="text/css" >
     6 </head>
     6 </head>
       
     7 {% load user_tags %}
     7 <body>
     8 <body>
     8 <div id="wrapper">
     9 <div id="wrapper">
     9     <div id="header">
    10     <div id="header">
    10         <h2><a href="/">PyTasks</a></h2>
    11         <h2><a href="/">PyTasks</a></h2>
    11     </div>
    12     </div>
    15             <li><a href="/" title="home">home</a></li>
    16             <li><a href="/" title="home">home</a></li>
    16             {% if user.is_authenticated %}
    17             {% if user.is_authenticated %}
    17                 <li><a href="/task/browse/" title="tasks">tasks</a></li>
    18                 <li><a href="/task/browse/" title="tasks">tasks</a></li>
    18                 <li><a href="/textbook/" title="textbook">textbooks</a></li>
    19                 <li><a href="/textbook/" title="textbook">textbooks</a></li>
    19                 <br />
    20                 <br />
    20                 <li><a href="/user/notifications/" title="notifications">
    21                 <li><a href="/profile/notf/browse/" title="notifications">
    21                 {% if user.unread_notifications.count %}
    22 			{{ user|notf_dsp }}
    22                     notifications({{user.unread_notifications.count}})
       
    23                 {% else %}
       
    24                     notifications
       
    25                 {% endif %}
       
    26                 </a></li>
       
    27                 <li><a href="/user/requests/" title="Requests">
       
    28                 {% if user.unread_requests.count %}
       
    29                     requests({{user.unread_requests.count}})
       
    30                 {% else %}
       
    31                     requests
       
    32                 {% endif %}
       
    33                 </a></li>
    23                 </a></li>
    34                 <br>
    24                 <br>
    35                 <li><a href="/profile/view">profile</a></li>
    25                 <li><a href="/profile/view">profile</a></li>
    36                 <li><a href="/accounts/logout/">logout</a></li>
    26                 <li><a href="/accounts/logout/">logout</a></li>
    37             {% else %}
    27             {% else %}