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
501e83d0
Commit
501e83d0
authored
Jun 25, 2014
by
Jason Bau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pin LTI scores to 2 decimal places
parent
198f23ed
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
lms/djangoapps/courseware/features/lti.feature
+3
-3
lms/templates/lti.html
+2
-2
No files found.
lms/djangoapps/courseware/features/lti.feature
View file @
501e83d0
...
...
@@ -92,7 +92,7 @@ Feature: LMS.LTI component
And
I see in the gradebook table that
"HW"
is
"80"
And
I see in the gradebook table that
"Total"
is
"8"
And
I visit the LTI component
Then
I see LTI component progress with text
"(8.0
/ 10.
0 points)"
Then
I see LTI component progress with text
"(8.0
0 / 10.0
0 points)"
Then
I see LTI component feedback with text
"This is awesome."
#10
...
...
@@ -103,11 +103,11 @@ Feature: LMS.LTI component
|
False
|
10
|
True
|
True
|
And
I submit answer to LTI 2 question
And
I visit the LTI component
Then
I see LTI component progress with text
"(8.0
/ 10.
0 points)"
Then
I see LTI component progress with text
"(8.0
0 / 10.0
0 points)"
Then
I see LTI component feedback with text
"This is awesome."
And
the LTI provider deletes my grade and feedback
And
I visit the LTI component (have to reload)
Then
I see LTI component progress with text
"(10.0 points possible)"
Then
I see LTI component progress with text
"(10.0
0
points possible)"
Then
in the LTI component I do not see feedback
And
I click on the
"Progress"
tab
Then I see text "Problem Scores
:
0/10"
...
...
lms/templates/lti.html
View file @
501e83d0
...
...
@@ -10,10 +10,10 @@
<div
class=
"problem-progress"
>
% if module_score is not None:
## Translators: "points" is the student's achieved score on this LTI unit, and "total_points" is the maximum number of points achievable.
(${_("{points} / {total_points} points").format(points=
module_score, total_points=weight
)})
(${_("{points} / {total_points} points").format(points=
"{:0.2f}".format(module_score), total_points="{:0.2f}".format(weight)
)})
% else:
## Translators: "total_points" is the maximum number of points achievable on this LTI unit
(${_("{total_points} points possible").format(total_points=
weight
)})
(${_("{total_points} points possible").format(total_points=
"{:0.2f}".format(weight)
)})
% endif
</div>
% endif
...
...
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