summaryrefslogtreecommitdiff
path: root/templates/index.html
diff options
context:
space:
mode:
authornishanth2010-02-28 14:44:10 +0530
committernishanth2010-02-28 14:44:10 +0530
commit4c7b03f6ca38e30b5394456ea9792e5cd6b4bfde (patch)
treec328c9b37f356c08c6a472923f78c8a3b88802ec /templates/index.html
parent33857f7042c0e72b29a8963b2ee3fe3c9696197b (diff)
downloadpytask-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.html12
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