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
b47fdd52
Commit
b47fdd52
authored
Nov 26, 2012
by
Victor Shnayder
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1080 from MITx/feature/jarv/dashboard-grades
Feature/jarv/dashboard grades
parents
c341975b
2db0efa2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
8 deletions
+13
-8
common/lib/xmodule/xmodule/course_module.py
+5
-1
lms/templates/dashboard.html
+8
-7
No files found.
common/lib/xmodule/xmodule/course_module.py
View file @
b47fdd52
...
...
@@ -150,6 +150,10 @@ class CourseDescriptor(SequenceDescriptor):
return
self
.
_grading_policy
[
'GRADE_CUTOFFS'
]
@property
def
lowest_passing_grade
(
self
):
return
min
(
self
.
_grading_policy
[
'GRADE_CUTOFFS'
]
.
values
())
@property
def
tabs
(
self
):
"""
Return the tabs config, as a python object, or None if not specified.
...
...
@@ -292,7 +296,7 @@ class CourseDescriptor(SequenceDescriptor):
return
False
except
:
log
.
exception
(
"Error parsing discussion_blackouts for course {0}"
.
format
(
self
.
id
))
return
True
@property
...
...
lms/templates/dashboard.html
View file @
b47fdd52
...
...
@@ -246,13 +246,14 @@
% if cert_status['status'] == 'processing':
<p
class=
"message-copy"
>
Final course details are being wrapped up at
this time. Your final standing will be available shortly.
</p>
% elif cert_status['status'] in ('generating', 'ready'):
<p
class=
"message-copy"
>
You have received a grade of
<span
class=
"grade-value"
>
${cert_status['grade']}
</span>
in this course.
</p>
% elif cert_status['status'] == 'notpassing':
<p
class=
"message-copy"
>
You did not complete the necessary requirements for
completion of this course.
</p>
% elif cert_status['status'] in ('generating', 'ready', 'notpassing'):
<p
class=
"message-copy"
>
Your final grade:
<span
class=
"grade-value"
>
${"{0:.0f}%".format(float(cert_status['grade'])*100)}
</span>
.
% if cert_status['status'] == 'notpassing':
Grade required for a certificate:
<span
class=
"grade-value"
>
${"{0:.0f}%".format(float(course.lowest_passing_grade)*100)}
</span>
.
% endif
</p>
% endif
% if cert_status['show_disabled_download_button'] or cert_status['show_download_url'] or cert_status['show_survey_button']:
...
...
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