summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html8
-rw-r--r--templates/index.html12
2 files changed, 10 insertions, 10 deletions
diff --git a/templates/base.html b/templates/base.html
index 4998bb4..2ed2687 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -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 %}
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