# HG changeset patch # User Lennard de Rijk # Date 1237238300 0 # Node ID 7f18e83a129f14fabdad8236a421df2ac0aff901 # Parent 6346175450370a7d1c35ca8ce5e875683fb1c9e4 Hook up the new template tag for StudentProposal reviews. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed diff -r 634617545037 -r 7f18e83a129f app/soc/templates/soc/student_proposal/public.html --- 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 @@
Public Reviews {% for review in public_reviews %} - {% as_review review %} + {% as_student_proposal_review review student %} {% endfor %}
diff -r 634617545037 -r 7f18e83a129f app/soc/templates/soc/student_proposal/review.html --- 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 @@
Public Reviews {% for review in public_reviews %} - {% as_review review %} + {% as_student_proposal_review review student %} {% endfor %}
Private Reviews {% for review in private_reviews %} - {% as_review review %} + {% as_student_proposal_review review student %} {% endfor %}
diff -r 634617545037 -r 7f18e83a129f app/soc/views/models/student_proposal.py --- 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: