--- a/templates/user/browse_notifications.html Fri Feb 26 00:17:54 2010 +0530
+++ b/templates/user/browse_notifications.html Fri Feb 26 00:29:04 2010 +0530
@@ -1,9 +1,13 @@
{% extends 'base.html' %}
{% block content %}
- {% for notification in notifications %}
- <a href="/user/notifications/nid={{notification.pos}}">
- {% if not notification.is_read %} <b> {% endif %}
- {{notification.sub}}
- {% if not notification.is_read %} </b> {% endif %}</a><br />
- {% endfor %}
+ {% if not notifications %}
+ You have no notifications.
+ {% else %}
+ {% for notification in notifications %}
+ <a href="/user/notifications/nid={{notification.pos}}">
+ {% if not notification.is_read %} <b> {% endif %}
+ {{notification.sub}}
+ {% if not notification.is_read %} </b> {% endif %}</a><br />
+ {% endfor %}
+ {% endif %}
{% endblock %}