%! from django.utils.translation import ugettext as _ from django.core.urlresolvers import reverse from courseware.courses import course_image_url, get_course_about_section %> <%inherit file="../main.html" /> <%namespace name='static' file='/static_content.html'/> <%block name="pagetitle">${_("Confirm Enrollment")}%block> <%block name="content">
${_( "You've clicked a link for an enrollment code that has already " "been used. Check your {link_start}course dashboard{link_end} " "to see if you're enrolled in the course, or contact your " "company's administrator." ).format( link_start=''.format(url=reverse('dashboard')), link_end='', )}
% elif redemption_success:${_( "You have successfully enrolled in {course_name}. " "This course has now been added to your dashboard." ).format( course_name=course.display_name, )}
% elif registered_for_course:${_( "You're already registered for this course. " "Visit your {link_start}dashboard{link_end} to see the course." ).format( link_start=''.format(url=reverse('dashboard')), link_end='', )}
% elif redeem_code_error:${_( "There was an error processing your redeem code.")}
% else:${_( "You're about to activate an enrollment code for {course_name} " "by {site_name}. This code can only be used one time, so you " "should only activate this code if you're its intended " "recipient." ).format( course_name=course.display_name, site_name=site_name, )}
% endif