diff options
author | nishanth | 2010-02-28 14:44:10 +0530 |
---|---|---|
committer | nishanth | 2010-02-28 14:44:10 +0530 |
commit | 4c7b03f6ca38e30b5394456ea9792e5cd6b4bfde (patch) | |
tree | c328c9b37f356c08c6a472923f78c8a3b88802ec /templates/index.html | |
parent | 33857f7042c0e72b29a8963b2ee3fe3c9696197b (diff) | |
download | pytask-4c7b03f6ca38e30b5394456ea9792e5cd6b4bfde.tar.gz pytask-4c7b03f6ca38e30b5394456ea9792e5cd6b4bfde.tar.bz2 pytask-4c7b03f6ca38e30b5394456ea9792e5cd6b4bfde.zip |
now if a user accepts to be a mentor, all his pending reqs will be made invalid.
Diffstat (limited to 'templates/index.html')
-rw-r--r-- | templates/index.html | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/templates/index.html b/templates/index.html index 58c1526..99287b2 100644 --- a/templates/index.html +++ b/templates/index.html @@ -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 |