Commit 7eb90ead by Bessie Steinberg Committed by Bill Filler

add min score to subsections that have not had their prereqs met

parent 83ad421d
......@@ -107,7 +107,7 @@ from openedx.core.djangolib.markup import HTML, Text
% if subsection['id'] in milestones and not milestones[subsection['id']]['completed_prereqs']:
<span class="subtitle">
<span class="subtitle-name">
Prereq is: ${milestones[subsection['id']]['prereq']}
Score of ${milestones[subsection['id']]['min_score']} required on ${milestones[subsection['id']]['prereq']} to access this content
</span>
</span>
% endif
......
......@@ -47,7 +47,8 @@ class CourseOutlineFragmentView(EdxFragmentView):
# TODO: just grab the 'requires' milestones from the database
if milestone['requirements']:
content_milestones[ milestone['content_id'] ] = {
'completed_prereqs': True
'completed_prereqs': True,
'min_score': milestone['requirements']['min_score']
}
for milestone in unfulfilled_prereqs:
......
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