Attach images to rubric to indicate which graders scored what

This commit is contained in:
Vik Paruchuri
2013-02-07 18:35:09 -05:00
parent a2d9e66634
commit 4973363353
5 changed files with 9 additions and 2 deletions

View File

@@ -171,12 +171,18 @@ class CombinedOpenEndedRubric(object):
rubric_categories[i]['options'][j]['grader_types'].append(grader_type)
log.debug(rubric_categories)
grader_type_image_dict = {
'SA' : '/static/images/self_assessment_icon.png',
'PE' : '/static/images/peer_grading_icon.png',
'ML' : '/static/images/ml_grading_icon.png',
}
html = self.system.render_template('open_ended_rubric.html',
{'categories': rubric_categories,
'has_score': True,
'view_only': True,
'max_score': max_score,
'combined_rubric' : True
'combined_rubric' : True,
'grader_type_image_dict' : grader_type_image_dict,
})
return html