templates/user/browse_notifications.html
changeset 106 3c3ea2a3f92a
parent 101 e2903a92b5e8
child 123 a6b4234388c8
--- 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 %}