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

This commit is contained in:
Tim Babych
2014-10-28 17:20:57 +02:00
parent 1a1ad7913d
commit 960f7b206a

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>