equal
deleted
inserted
replaced
83 'comment_class': "public" if review.is_public else "private", |
83 'comment_class': "public" if review.is_public else "private", |
84 }) |
84 }) |
85 |
85 |
86 return context |
86 return context |
87 |
87 |
|
88 @register.inclusion_tag('soc/templatetags/_as_student_proposal_review.html', |
|
89 takes_context=True) |
|
90 def as_student_proposal_review(context, review, student): |
|
91 """Returns a HTML representation of a student proposal review. |
|
92 """ |
|
93 |
|
94 # TODO(ljvderijk) once review editing is allowed redo this |
|
95 |
|
96 context.update({ |
|
97 'author': review.author_name(), |
|
98 'content': review.content, |
|
99 'created': review.created, |
|
100 'score': review.score, |
|
101 'is_public': review.is_public, |
|
102 'from_student': review.author.key() == student.user.key() |
|
103 }) |
|
104 |
|
105 return context |