diff options
author | nishanth | 2010-02-28 03:31:40 +0530 |
---|---|---|
committer | nishanth | 2010-02-28 03:31:40 +0530 |
commit | 515dcfae7247c5d14efebe6f09c5ab9dc61e58ab (patch) | |
tree | d2048d96cbb6735313fa9ab4a23ff01f9b08bf7c /templates/base.html | |
parent | eb93427d1f7b439258e6d2bd1c89afbd52d34ea2 (diff) | |
download | pytask-515dcfae7247c5d14efebe6f09c5ab9dc61e58ab.tar.gz pytask-515dcfae7247c5d14efebe6f09c5ab9dc61e58ab.tar.bz2 pytask-515dcfae7247c5d14efebe6f09c5ab9dc61e58ab.zip |
now requests in sidebar shows the no.of unread notifications.
Diffstat (limited to 'templates/base.html')
-rw-r--r-- | templates/base.html | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/templates/base.html b/templates/base.html index c6a92c7..4998bb4 100644 --- a/templates/base.html +++ b/templates/base.html @@ -131,8 +131,20 @@ <li><a href="/" title="home">home</a></li> {% if user.is_authenticated %} <li><a href="/task/browse/" title="tasks">tasks</a></li> - <li><a href="/user/notifications/" title="notifications">notifications</a></li> - <li><a href="/user/requests/" title="Requests">requests</a></li> + <li><a href="/user/notifications/" title="notifications"> + {% if user.unread_notifications %} + notifications({{user.unread_notifications}}) + {% else %} + notifications + {% endif %} + </a></li> + <li><a href="/user/requests/" title="Requests"> + {% if user.unread_requests %} + requests({{user.unread_requests}}) + {% else %} + requests + {% endif %} + </a></li> <br> <li><a href="/user/view/uid={{user.id}}">my profile</a></li> <li><a href="/accounts/logout/">logout</a></li> |