Commit fc6cb502 by Tim Babych

TNL-281: reduce amount of JS in marketing iframe

parent 0d36dd72
......@@ -52,7 +52,13 @@
<div class="action is-registered">${_("You Are Enrolled")}</div>
%endif
%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:
<span class="track">
## 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-app'/>
<%static:js group='main_vendor'/>
<%static:js group='base_vendor'/>
<!--[if lt IE 9]>
<script src="${static.url('js/html5shiv.js')}"></script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment