From 497336335395faef3fca5ace567b13a3e92c2b6a Mon Sep 17 00:00:00 2001 From: Vik Paruchuri Date: Thu, 7 Feb 2013 18:35:09 -0500 Subject: [PATCH] Attach images to rubric to indicate which graders scored what --- .../xmodule/xmodule/combined_open_ended_rubric.py | 8 +++++++- common/static/images/ml_grading_icon.png | Bin 0 -> 405 bytes common/static/images/peer_grading_icon.png | Bin 0 -> 610 bytes common/static/images/self_assessment_icon.png | Bin 0 -> 705 bytes lms/templates/open_ended_rubric.html | 3 ++- 5 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 common/static/images/ml_grading_icon.png create mode 100644 common/static/images/peer_grading_icon.png create mode 100644 common/static/images/self_assessment_icon.png diff --git a/common/lib/xmodule/xmodule/combined_open_ended_rubric.py b/common/lib/xmodule/xmodule/combined_open_ended_rubric.py index 0cfa6cde88..a9771cd878 100644 --- a/common/lib/xmodule/xmodule/combined_open_ended_rubric.py +++ b/common/lib/xmodule/xmodule/combined_open_ended_rubric.py @@ -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 diff --git a/common/static/images/ml_grading_icon.png b/common/static/images/ml_grading_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..283355814e64c04fbc49a5e72fbdc7f193d0eeeb GIT binary patch literal 405 zcmV;G0c!q^BrBB({|1i?CG@(Mn{)q;gZNM*P~*N@vchSkgIxsrv!b!X^P2*aLL&;4a)O;6#y{+*!8BIJ0(d%Ns`Qx zFvciNQ>1Cyuot?nQ&>{ZWt*mnilX=hv~4>$9^XEh$@9{~mcIEpBrTU)N700000NkvXXu0mjfbDFIk literal 0 HcmV?d00001 diff --git a/common/static/images/peer_grading_icon.png b/common/static/images/peer_grading_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..0ee7cf5f1740d2b3f7df3e8ed4eb8ff68a8964ed GIT binary patch literal 610 zcmV-o0-gPdP)?%7k*K zJ2m{yf=hx7z=!wNvrGfx|KDD30%H&xBnFdbVjv7MEz+hk{QvbFj6rN9*D$aUVF1Iw zZ?|#EF`@evi2sA|l~oZBpf*iEwPXUrzwdXz7{msN!Spb~0udHamO1Od{Nq!C7zDI} zKfhFQ=Y4;qlR@I$U9k8IA!UYpl15-dYC@M~Asg@?>OVL*F)N$Fy80c%yU!0WoIY(! zJ=hQyLVo@D^(DjkyPGk@lie#BCatZ>gd4yoV|D=OKL?XwA29#S+AR#?Mu`kRe*R_P z=Tc<2_4F8A^YL?M7+xAZXZZ5z6C@VOXP(`4_i3w*J>$fG3~RT51C~uSp5ZuC3B&7M zPZqX|Dr=sCmdD|i2h>L{ZGDoAYcCuNo&-~aw`F!NvUu;^VFx&Px#07*qoM6N<$f>tOHDF6Tf literal 0 HcmV?d00001 diff --git a/common/static/images/self_assessment_icon.png b/common/static/images/self_assessment_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..c4b84e2ec8a63baf55e25c2bdefcc23210f0b397 GIT binary patch literal 705 zcmV;y0zUnTP)qBW^5fQ_nundO@Z4F(c z)XjWrbMxiiy!Y;UJNGJK8%X});d#z;{^xfd&b^c2 zc#Z>2(>{i#Z$I~X->>#bqS65ttF1@s0?+ecSr#dd;pgU<%6KdmSPf7i zP2{F}c2TL8z!D%O2#}^=7Z=qW%ibXt$7+8DfMb%i+AIM#To+MpP=QYg_%h0(xuqSP zAe>0|E7BW@B$Ivlsv8z_AsL$kwIpEg?qXcI=EA~nL7VPZHFenkX*8V)4_geZiA#=S ziRa{=Nb3D&C0Z{`1l*7H%f6L!850nBCPOcw$k_;yQj<{0_4E&~yq9jK8lRoZAXEiA z+P4%PcjlW8%j?)kH>ScbJiR+l*JS|4eIeudJ{VrA8};Cx_5C_!hJD%tP17##=HV6zxIl)B5(}ZRO5`6~{0=`yEMo0(lz> zut{fHeuLRj#OI^P)o#URT@l_5yh1qo)#EW{Nx!M*j{pMzFop+aEaMdd00000NkvXXu0mjf!}dJh literal 0 HcmV?d00001 diff --git a/lms/templates/open_ended_rubric.html b/lms/templates/open_ended_rubric.html index 9274d395bb..47300508d0 100644 --- a/lms/templates/open_ended_rubric.html +++ b/lms/templates/open_ended_rubric.html @@ -28,7 +28,8 @@ % elif combined_rubric == True:
%for grader_type in category['options'][j]['grader_types']: - ${grader_type} + <% grader_image = grader_type_image_dict[grader_type]%> + %endfor ${option['points']} points : ${option['text']}