templates/base.html
changeset 137 e56b95298254
parent 70 a14ec2f09beb
child 143 796ff9e279a8
equal deleted inserted replaced
136:8632a44b743d 137:e56b95298254
   129         <div id="left">
   129         <div id="left">
   130         <ul id="nav">
   130         <ul id="nav">
   131             <li><a href="/" title="home">home</a></li>
   131             <li><a href="/" title="home">home</a></li>
   132             {% if user.is_authenticated %}
   132             {% if user.is_authenticated %}
   133                 <li><a href="/task/browse/" title="tasks">tasks</a></li>
   133                 <li><a href="/task/browse/" title="tasks">tasks</a></li>
   134                 <li><a href="/user/notifications/" title="notifications">notifications</a></li>
   134                 <li><a href="/user/notifications/" title="notifications">
   135                 <li><a href="/user/requests/" title="Requests">requests</a></li>
   135                 {% if user.unread_notifications %}
       
   136                     notifications({{user.unread_notifications}})
       
   137                 {% else %}
       
   138                     notifications
       
   139                 {% endif %}
       
   140                 </a></li>
       
   141                 <li><a href="/user/requests/" title="Requests">
       
   142                 {% if user.unread_requests %}
       
   143                     requests({{user.unread_requests}})
       
   144                 {% else %}
       
   145                     requests
       
   146                 {% endif %}
       
   147                 </a></li>
   136                 <br>
   148                 <br>
   137                 <li><a href="/user/view/uid={{user.id}}">my profile</a></li>
   149                 <li><a href="/user/view/uid={{user.id}}">my profile</a></li>
   138                 <li><a href="/accounts/logout/">logout</a></li>
   150                 <li><a href="/accounts/logout/">logout</a></li>
   139             {% else %}
   151             {% else %}
   140                 <li><a href="/accounts/login/" title="login">login</a></li>
   152                 <li><a href="/accounts/login/" title="login">login</a></li>