Hook up the new template tag for StudentProposal reviews.
Patch by: Lennard de Rijk
Reviewed by: to-be-reviewed
--- a/app/soc/templates/soc/student_proposal/public.html Mon Mar 16 21:17:04 2009 +0000
+++ b/app/soc/templates/soc/student_proposal/public.html Mon Mar 16 21:18:20 2009 +0000
@@ -37,7 +37,7 @@
<hr/>
<b>Public Reviews</b>
{% for review in public_reviews %}
- {% as_review review %}
+ {% as_student_proposal_review review student %}
{% endfor %}
<hr/>
--- a/app/soc/templates/soc/student_proposal/review.html Mon Mar 16 21:17:04 2009 +0000
+++ b/app/soc/templates/soc/student_proposal/review.html Mon Mar 16 21:18:20 2009 +0000
@@ -35,12 +35,12 @@
<hr/>
<b>Public Reviews</b>
{% for review in public_reviews %}
- {% as_review review %}
+ {% as_student_proposal_review review student %}
{% endfor %}
<hr/>
<b>Private Reviews</b>
{% for review in private_reviews %}
- {% as_review review %}
+ {% as_student_proposal_review review student %}
{% endfor %}
<hr/>
--- a/app/soc/views/models/student_proposal.py Mon Mar 16 21:17:04 2009 +0000
+++ b/app/soc/views/models/student_proposal.py Mon Mar 16 21:18:20 2009 +0000
@@ -423,6 +423,7 @@
student_entity = entity.scope
+ context['student'] = student_entity
context['student_name'] = student_entity.name()
user_entity = user_logic.logic.getForCurrentAccount()
@@ -776,6 +777,7 @@
context = {}
+ context['student'] = entity.scope
context['student_name'] = entity.scope.name()
if entity.mentor: