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
a54ef273
Commit
a54ef273
authored
4 years ago
by
Matt Tuchfarber
Browse files
Options
Downloads
Patches
Plain Diff
Fix dashboard coaching redirect
parent
ad5aa6cd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
themes/edx.org/lms/templates/dashboard/_dashboard_course_resume.html
+3
-2
3 additions, 2 deletions
...org/lms/templates/dashboard/_dashboard_course_resume.html
with
3 additions
and
2 deletions
themes/edx.org/lms/templates/dashboard/_dashboard_course_resume.html
+
3
−
2
View file @
a54ef273
...
...
@@ -26,14 +26,15 @@ MICROBACHELORS_SLUG = 'microbachelors'
</a>
% else:
<
%
redirected_course_target =
course_target
account_mfe_url =
getattr(settings,
'
ACCOUNT_MICROFRONTEND_URL
',
'')
or
''
show_coaching_consent_form =
plugins.get("coaching",
{}).
get
("
show_coaching_consent_form
")
if
related_programs
and
account_mfe_url
!=
''
and
show_coaching_consent_form:
for
program
in
related_programs:
if
program.get
('
type_attrs
',
{}).
get
('
slug
'
) =
=
MICROBACHELORS_SLUG:
course_target =
"%s/coaching_consent?next=%s"
%
(
account_mfe_url
,
getattr
(
settings
,
'
LMS_ROOT_URL
',
'')
+
course_target
)
redirected_
course_target =
"%s/coaching_consent?next=%s"
%
(
account_mfe_url
,
getattr
(
settings
,
'
LMS_ROOT_URL
',
'')
+
course_target
)
%
>
<a
href=
"${course_target}"
<a
href=
"${
redirected_
course_target}"
class=
"course-target-link enter-course ${'hidden' if is_unfulfilled_entitlement else ''}"
data-course-key=
"${enrollment.course_id}"
>
${_('View Course')}
...
...
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