Added Mentor name column to StudentProposals list.
Patch by: Lennard de Rijk
Reviewed by: to-be-reviewed
--- a/app/soc/templates/soc/student_proposal/list/detailed_heading.html Mon Apr 06 21:19:58 2009 +0000
+++ b/app/soc/templates/soc/student_proposal/list/detailed_heading.html Mon Apr 06 21:38:10 2009 +0000
@@ -2,7 +2,7 @@
<th class="first" align="right">Rank</th>
<th>Title</th>
<th>Student</th>
- <th>Status</th>
+ <th>Mentor</th>
<th>Score</th>
<th>Last Modified on</th>
</tr>
--- a/app/soc/templates/soc/student_proposal/list/detailed_row.html Mon Apr 06 21:19:58 2009 +0000
+++ b/app/soc/templates/soc/student_proposal/list/detailed_row.html Mon Apr 06 21:38:10 2009 +0000
@@ -10,7 +10,13 @@
</div>
</td>
<td><div class="name">{{ list.item.scope.name }}</a></div></td>
- <td><div class="status">{{ list.item.status }}</a></div></td>
+ <td><div class="name">
+ {% if not list.item.mentor %}
+ None
+ {% else %}
+ {{ list.item.mentor.name }}
+ {% endif %}
+ </a></div></td>
<td><div class="score">{{ list.item.score }}</a></div></td>
<td><div class="date">{{ list.item.last_modified_on|date:"jS F Y H:i" }}</a></div></td>
</tr>
--- a/app/soc/templates/soc/student_proposal/list/heading.html Mon Apr 06 21:19:58 2009 +0000
+++ b/app/soc/templates/soc/student_proposal/list/heading.html Mon Apr 06 21:38:10 2009 +0000
@@ -1,6 +1,7 @@
<tr align="left">
<th class="first" align="right">Title</th>
<th>Student</th>
+ <th>Mentor</th>
<th>Organization Name</th>
<th>Last Modified on</th>
</tr>
--- a/app/soc/templates/soc/student_proposal/list/row.html Mon Apr 06 21:19:58 2009 +0000
+++ b/app/soc/templates/soc/student_proposal/list/row.html Mon Apr 06 21:38:10 2009 +0000
@@ -5,6 +5,13 @@
</div>
</td>
<td><div class="name">{{ list.item.scope.name }}</a></div></td>
+ <td><div class="name">
+ {% if not list.item.mentor %}
+ None
+ {% else %}
+ {{ list.item.mentor.name }}
+ {% endif %}
+ </a></div></td>
<td><div class="status">{{ list.item.org.name }}</a></div></td>
<td><div class="date">{{ list.item.last_modified_on|date:"jS F Y H:i" }}</a></div></td>
</tr>