Merge pull request #5657 from edx/tim/mktg-iframe-trim
TNL-281: reduce amount of JS in marketing iframe
This commit is contained in:
@@ -52,7 +52,13 @@
|
|||||||
<div class="action is-registered">${_("You Are Enrolled")}</div>
|
<div class="action is-registered">${_("You Are Enrolled")}</div>
|
||||||
%endif
|
%endif
|
||||||
%elif allow_registration:
|
%elif allow_registration:
|
||||||
<a class="action action-register register ${'has-option-verified' if len(course_modes) > 1 else ''}" href="#">${_("Enroll in")} <strong>${course.display_number_with_default | h}</strong>
|
<a class="action action-register register ${'has-option-verified' if len(course_modes) > 1 else ''}"
|
||||||
|
%if user.is_authenticated():
|
||||||
|
href="${reverse('about_course', args=[course.id.to_deprecated_string()])}"
|
||||||
|
%else:
|
||||||
|
href="${reverse('register_user')}?course_id=${course.id | u}&enrollment_action=enroll"
|
||||||
|
%endif
|
||||||
|
>${_("Enroll in")} <strong>${course.display_number_with_default | h}</strong>
|
||||||
%if len(course_modes) > 1:
|
%if len(course_modes) > 1:
|
||||||
<span class="track">
|
<span class="track">
|
||||||
## Translators: This is the second line on a button users can click. The first line is "Enroll in COURSE_NAME"
|
## Translators: This is the second line on a button users can click. The first line is "Enroll in COURSE_NAME"
|
||||||
|
|||||||
@@ -13,8 +13,7 @@
|
|||||||
|
|
||||||
<%static:css group='style-vendor'/>
|
<%static:css group='style-vendor'/>
|
||||||
<%static:css group='style-app'/>
|
<%static:css group='style-app'/>
|
||||||
|
<%static:js group='base_vendor'/>
|
||||||
<%static:js group='main_vendor'/>
|
|
||||||
|
|
||||||
<!--[if lt IE 9]>
|
<!--[if lt IE 9]>
|
||||||
<script src="${static.url('js/html5shiv.js')}"></script>
|
<script src="${static.url('js/html5shiv.js')}"></script>
|
||||||
|
|||||||
Reference in New Issue
Block a user