Commit 0feb8f66 by Vik Paruchuri

Fix colors on legend, add random assessment

parent 8ef45915
...@@ -4,6 +4,7 @@ from lxml import etree ...@@ -4,6 +4,7 @@ from lxml import etree
log = logging.getLogger(__name__) log = logging.getLogger(__name__)
GRADER_TYPE_IMAGE_DICT = { GRADER_TYPE_IMAGE_DICT = {
'8B' : '/static/images/random_grading_icon.png',
'SA' : '/static/images/self_assessment_icon.png', 'SA' : '/static/images/self_assessment_icon.png',
'PE' : '/static/images/peer_grading_icon.png', 'PE' : '/static/images/peer_grading_icon.png',
'ML' : '/static/images/ml_grading_icon.png', 'ML' : '/static/images/ml_grading_icon.png',
...@@ -12,6 +13,7 @@ GRADER_TYPE_IMAGE_DICT = { ...@@ -12,6 +13,7 @@ GRADER_TYPE_IMAGE_DICT = {
} }
HUMAN_GRADER_TYPE = { HUMAN_GRADER_TYPE = {
'8B' : 'Magic-8-Ball-Assessment',
'SA' : 'Self-Assessment', 'SA' : 'Self-Assessment',
'PE' : 'Peer-Assessment', 'PE' : 'Peer-Assessment',
'IN' : 'Instructor-Assessment', 'IN' : 'Instructor-Assessment',
......
...@@ -45,8 +45,7 @@ section.combined-open-ended { ...@@ -45,8 +45,7 @@ section.combined-open-ended {
section.legend-container { section.legend-container {
.legenditem { .legenditem {
color: #FFFFFF; background-color : #d4d4d4;
background-color : #000000;
font-size: .9em; font-size: .9em;
padding: 2px; padding: 2px;
display: inline; display: inline;
......
<section class="legend-container"> <section class="legend-container">
<div class="legenditem"> <div class="legenditem">
Legend
</div> </div>
% for i in xrange(0,len(legend_list)): % for i in xrange(0,len(legend_list)):
<%legend_title=legend_list[i]['name'] %> <%legend_title=legend_list[i]['name'] %>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment