Changed StudentProposal list to show the amount of pending mentors if none have been assigned.
authorLennard de Rijk <ljvderijk@gmail.com>
Tue, 07 Apr 2009 21:12:29 +0000
changeset 2120 b148456b4939
parent 2119 15cfe49eea42
child 2121 4f6344dfab28
Changed StudentProposal list to show the amount of pending mentors if none have been assigned. Addresses Issue 551. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed
app/soc/templates/soc/student_proposal/list/detailed_row.html
--- a/app/soc/templates/soc/student_proposal/list/detailed_row.html	Tue Apr 07 18:50:24 2009 +0000
+++ b/app/soc/templates/soc/student_proposal/list/detailed_row.html	Tue Apr 07 21:12:29 2009 +0000
@@ -12,7 +12,11 @@
   <td><div class="name">{{ list.item.scope.name }}</a></div></td>
   <td><div class="name">
     {% if not list.item.mentor %}
-      None
+      {% if list.item.possible_mentors %}
+        {{ list.item.possible_mentors|length }} Pending
+      {% else %}
+        None
+      {% endif %}
     {% else %}
       {{ list.item.mentor.name }}
     {% endif %}