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
f1b91cb8
Commit
f1b91cb8
authored
Sep 13, 2017
by
Albert (AJ) St. Aubin
Committed by
GitHub
Sep 13, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #16007 from edx/aj/LEARNER-2291
Set formatting to show 2 decimal places on Program Purchase button
parents
04a61ff6
9d0a1e80
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
lms/static/js/spec/learner_dashboard/program_details_view_spec.js
+2
-2
lms/templates/learner_dashboard/program_details_view.underscore
+3
-2
No files found.
lms/static/js/spec/learner_dashboard/program_details_view_spec.js
View file @
f1b91cb8
...
...
@@ -571,7 +571,7 @@ define([
expect
(
$
(
view
.
$
(
'.upgrade-button.complete-program'
)).
text
().
trim
().
replace
(
/
\s
+/g
,
' '
)).
toEqual
(
'Upgrade All Remaining Courses ( $300 USD )'
'Upgrade All Remaining Courses ( $300
.00
USD )'
);
});
...
...
@@ -592,7 +592,7 @@ define([
expect
(
$
(
view
.
$
(
'.upgrade-button.complete-program'
)).
text
().
trim
().
replace
(
/
\s
+/g
,
' '
)).
toEqual
(
'Upgrade All Remaining Courses ( $270
$3
00 USD )'
'Upgrade All Remaining Courses ( $270
.00 $300.
00 USD )'
);
});
...
...
lms/templates/learner_dashboard/program_details_view.underscore
View file @
f1b91cb8
...
...
@@ -26,13 +26,14 @@
<% if (discount_data.is_discounted) { %>
<span class='list-price'>
<%- StringUtils.interpolate(
gettext('${listPrice}'), {listPrice: discount_data.total_incl_tax_excl_discounts}
gettext('${listPrice}'), {listPrice: discount_data.total_incl_tax_excl_discounts
.toFixed(2)
}
)
%>
</span>
<% } %>
<%- StringUtils.interpolate(
gettext(' ${price} {currency} )'), {price: full_program_price, currency: discount_data.currency}
gettext(' ${price} {currency} )'),
{price: full_program_price.toFixed(2), currency: discount_data.currency}
)
%>
</a>
...
...
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