Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
7eb90ead
Commit
7eb90ead
authored
Nov 28, 2017
by
Bessie Steinberg
Committed by
Bill Filler
Nov 30, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add min score to subsections that have not had their prereqs met
parent
83ad421d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
openedx/features/course_experience/templates/course_experience/course-outline-fragment.html
+1
-1
openedx/features/course_experience/views/course_outline.py
+2
-1
No files found.
openedx/features/course_experience/templates/course_experience/course-outline-fragment.html
View file @
7eb90ead
...
...
@@ -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
...
...
openedx/features/course_experience/views/course_outline.py
View file @
7eb90ead
...
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment