templates/user/browse_requests.html
changeset 106 3c3ea2a3f92a
parent 102 67de265ca06a
child 122 daee11bdfbaa
--- a/templates/user/browse_requests.html	Fri Feb 26 00:17:54 2010 +0530
+++ b/templates/user/browse_requests.html	Fri Feb 26 00:29:04 2010 +0530
@@ -1,11 +1,15 @@
 {% extends 'base.html' %}
 {% block content %}
-    {% for req in reqs %}
-        <form><a href="/user/requests/rid={{req.pos}}">
-        {% if not req.is_read %}<b>{% endif %}{{req.sent_by.username}}|{{req.role}}|
-        {% ifequal req.role "PY" %}            
-            {{req.task.title}}
-        {% endifequal %}</a>
-        {% if not req.is_read %}</b>{% endif %}<br /></form>
-    {% endfor %}
+    {% if not reqs %}
+        You have no unreplied requests.
+    {% else %}
+        {% for req in reqs %}
+            <form><a href="/user/requests/rid={{req.pos}}">
+            {% if not req.is_read %}<b>{% endif %}{{req.sent_by.username}}|{{req.role}}|
+            {% ifequal req.role "PY" %}            
+                {{req.task.title}}
+            {% endifequal %}</a>
+            {% if not req.is_read %}</b>{% endif %}<br /></form>
+        {% endfor %}
+    {% endif %}
 {% endblock %}