templates/base.html
changeset 143 796ff9e279a8
parent 137 e56b95298254
child 173 b8e7a4e86b35
--- a/templates/base.html	Sun Feb 28 13:27:43 2010 +0530
+++ b/templates/base.html	Sun Feb 28 14:44:10 2010 +0530
@@ -132,15 +132,15 @@
             {% if user.is_authenticated %}
                 <li><a href="/task/browse/" title="tasks">tasks</a></li>
                 <li><a href="/user/notifications/" title="notifications">
-                {% if user.unread_notifications %}
-                    notifications({{user.unread_notifications}})
+                {% if user.unread_notifications.count %}
+                    notifications({{user.unread_notifications.count}})
                 {% else %}
                     notifications
                 {% endif %}
                 </a></li>
                 <li><a href="/user/requests/" title="Requests">
-                {% if user.unread_requests %}
-                    requests({{user.unread_requests}})
+                {% if user.unread_requests.count %}
+                    requests({{user.unread_requests.count}})
                 {% else %}
                     requests
                 {% endif %}