diff -r bd65e2c9a7b4 -r 796ff9e279a8 templates/index.html
--- 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 }}
{% endif %}
- {% if notifications.count %}
- You have {{ notifications.count }} unread
- {% ifnotequal notifications.count 1 %}
+ {% if user.unread_notifications.count %}
+ You have {{ user.unread_notifications.count }} unread
+ {% ifnotequal user.unread_notifications.count 1 %}
notifications
{% else %}
notification
{% endifnotequal %}
{% endif %}
- {% if requests.count %}
- You have {{ requests.count }} unreplied
- {% ifnotequal requests.count 1 %}
+ {% if user.unread_requests.count %}
+ You have {{ user.unread_requests.count }} unreplied
+ {% ifnotequal user.unread_requests.count 1 %}
requests
{% else %}
request