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
OpenEdx
edx-platform
Commits
c46dc013
Commit
c46dc013
authored
Sep 12, 2017
by
Albert St. Aubin
Committed by
Dillon Dumesnil
Oct 31, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set formatting to show 2 decimal places on Program Purchase button
[LEARNER-2291]
parent
b5ed4937
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 @
c46dc013
...
...
@@ -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 @
c46dc013
...
...
@@ -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