templates/index.html
changeset 125 d3cfceb8e120
parent 97 3699550991c6
child 139 56203661002a
--- a/templates/index.html	Fri Feb 26 22:45:19 2010 +0530
+++ b/templates/index.html	Fri Feb 26 23:22:23 2010 +0530
@@ -55,8 +55,17 @@
     {% if user.task_mentors.count %}
         <br><a href="/user/mentor/">Mentoring</a> {{ user.task_mentors.count }}
         {% ifnotequal user.task_mentors.count 1 %}
-        tasks!
+            tasks!
+        {% else %}
+            task!
         {% endifnotequal %}
-        task!
+        <br />
+    {% endif %}
+    
+    {% if unpublished_tasks %}
+    <br />Unpublished tasks:<br />
+        {% for a_task in unpublished_tasks %}
+            <a href="/task/view/tid={{a_task.id}}">{{a_task.title}}</a>&nbsp;&nbsp;&nbsp;
+        {% endfor %}
     {% endif %}
 {% endblock %}