templates/base.html
changeset 137 e56b95298254
parent 70 a14ec2f09beb
child 143 796ff9e279a8
--- a/templates/base.html	Sun Feb 28 03:01:53 2010 +0530
+++ b/templates/base.html	Sun Feb 28 03:31:40 2010 +0530
@@ -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>