Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
10bfcb83
Commit
10bfcb83
authored
9 years ago
by
zubair-arbi
Browse files
Options
Downloads
Patches
Plain Diff
add url link for credit checkout page
ECOM-1524
parent
a930fec8
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lms/envs/devstack.py
+3
-0
3 additions, 0 deletions
lms/envs/devstack.py
lms/templates/dashboard/_dashboard_credit_info.html
+1
-2
1 addition, 2 deletions
lms/templates/dashboard/_dashboard_credit_info.html
with
4 additions
and
2 deletions
lms/envs/devstack.py
+
3
−
0
View file @
10bfcb83
...
...
@@ -181,6 +181,9 @@ FEATURES['ENABLE_COSMETIC_DISPLAY_PRICE'] = True
if
FEATURES
.
get
(
'
ENABLE_THIRD_PARTY_AUTH
'
)
and
'
third_party_auth.dummy.DummyBackend
'
not
in
AUTHENTICATION_BACKENDS
:
AUTHENTICATION_BACKENDS
=
[
'
third_party_auth.dummy.DummyBackend
'
]
+
list
(
AUTHENTICATION_BACKENDS
)
############## ECOMMERCE API CONFIGURATION SETTINGS ###############
ECOMMERCE_PUBLIC_URL_ROOT
=
"
http://localhost:8002
"
#####################################################################
# See if the developer has any local overrides.
try
:
...
...
This diff is collapsed.
Click to expand it.
lms/templates/dashboard/_dashboard_credit_info.html
+
1
−
2
View file @
10bfcb83
...
...
@@ -25,8 +25,7 @@
%
endif
</
p
>
<div
class=
"purchase_credit"
>
## TODO: set the URL for the link to the provider selection page on the E-Commerce service
<a
class=
"btn credit-btn purchase-credit-btn"
href=
"#"
target=
"_blank"
data-course-key=
"${credit_status['course_key']}"
>
${_("Purchase Course Credit")}
</a>
<a
class=
"btn credit-btn purchase-credit-btn"
href=
"${settings.ECOMMERCE_PUBLIC_URL_ROOT}/credit/checkout/${credit_status['course_key']}"
target=
"_blank"
data-course-key=
"${credit_status['course_key']}"
>
${_("Purchase Course Credit")}
</a>
</div>
% elif credit_status["request_status"] in [None, "pending"] and not credit_status["error"] :
% if credit_status["request_status"] == "pending":
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment