Commit 960f7b20 by Tim Babych

Fix to marketing iframe middle-click href: course does not always have openable url.

parent 1a1ad791
...@@ -53,9 +53,7 @@ ...@@ -53,9 +53,7 @@
%endif %endif
%elif allow_registration: %elif allow_registration:
<a class="action action-register register ${'has-option-verified' if len(course_modes) > 1 else ''}" <a class="action action-register register ${'has-option-verified' if len(course_modes) > 1 else ''}"
%if user.is_authenticated(): %if not 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" href="${reverse('register_user')}?course_id=${course.id | u}&enrollment_action=enroll"
%endif %endif
>${_("Enroll in")} <strong>${course.display_number_with_default | h}</strong> >${_("Enroll in")} <strong>${course.display_number_with_default | h}</strong>
......
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