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
--- 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 %}