Merge pull request #5761 from edx/tim/mktg-iframe-fix

Do not show middle-click href in marketing iframe for logged in users
This commit is contained in:
Tim Babych
2014-10-28 18:29:36 +02:00

View File

@@ -53,9 +53,7 @@
%endif
%elif allow_registration:
<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:
%if not user.is_authenticated():
href="${reverse('register_user')}?course_id=${course.id | u}&enrollment_action=enroll"
%endif
>${_("Enroll in")} <strong>${course.display_number_with_default | h}</strong>