templates/index.html
changeset 143 796ff9e279a8
parent 141 2489392ffb56
child 145 0c97a02b9bdb
--- a/templates/index.html	Sun Feb 28 13:27:43 2010 +0530
+++ b/templates/index.html	Sun Feb 28 14:44:10 2010 +0530
@@ -12,18 +12,18 @@
         Logged in as {{ user.username }} <br />
     {% endif %}
     
-    {% if notifications.count %}
-        You have {{ notifications.count }} <a href='/user/notifications/'>unread</a>
-        {% ifnotequal notifications.count 1 %}
+    {% if user.unread_notifications.count %}
+        You have {{ user.unread_notifications.count }} <a href='/user/notifications/'>unread</a>
+        {% ifnotequal user.unread_notifications.count 1 %}
         notifications
         {% else %}
         notification
         {% endifnotequal %}<br />
     {% endif %}
     
-    {% if requests.count %}
-        You have {{ requests.count }}  <a href='/user/requests/'>unreplied</a>
-        {% ifnotequal requests.count 1 %}
+    {% if user.unread_requests.count %}
+        You have {{ user.unread_requests.count }}  <a href='/user/requests/'>unreplied</a>
+        {% ifnotequal user.unread_requests.count 1 %}
         requests
         {% else %}
         request