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
058a7e84
Commit
058a7e84
authored
Apr 06, 2016
by
Waheed Ahmed
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #12036 from edx/waheed/ecom-3127-fix-grade-requirements
Fixed progress page grade requirements text.
parents
34cecaee
6a9157e4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
7 deletions
+3
-7
lms/djangoapps/courseware/tests/test_credit_requirements.py
+2
-2
lms/templates/courseware/progress.html
+1
-5
No files found.
lms/djangoapps/courseware/tests/test_credit_requirements.py
View file @
058a7e84
...
...
@@ -119,8 +119,8 @@ class ProgressPageCreditRequirementsTest(SharedModuleStoreTestCase):
response
,
"{}, you have met the requirements for credit in this course."
.
format
(
self
.
USER_FULL_NAME
)
)
self
.
assertContains
(
response
,
"Completed {date}"
.
format
(
date
=
self
.
_now_formatted_date
()))
self
.
assertContains
(
response
,
"95
%
"
)
self
.
assertContains
(
response
,
"Completed
by
{date}"
.
format
(
date
=
self
.
_now_formatted_date
()))
self
.
assert
Not
Contains
(
response
,
"95
%
"
)
def
test_credit_requirements_not_eligible
(
self
):
# Mark the user as having failed both requirements
...
...
lms/templates/courseware/progress.html
View file @
058a7e84
...
...
@@ -139,11 +139,7 @@ from django.utils.http import urlquote_plus
<span>
${_("Verification Declined" )}
</span>
%elif requirement['status'] == 'satisfied':
<i
class=
"fa fa-check"
aria-hidden=
"true"
></i>
% if requirement['namespace'] == 'grade' and 'final_grade' in requirement['reason']:
<span>
${int(requirement['reason']['final_grade'] * 100) | h}%
</span>
% else:
<span>
${_("Completed")} ${get_time_display(requirement['status_date'], DEFAULT_SHORT_DATE_FORMAT, settings.TIME_ZONE)}
</span>
% endif
<span>
${_("Completed by")} ${get_time_display(requirement['status_date'], DEFAULT_SHORT_DATE_FORMAT, settings.TIME_ZONE)}
</span>
%endif
%else:
<span
class=
"not-achieve"
>
${_("Upcoming")}
</span>
...
...
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