## mako <%! from django.utils.translation import ugettext as _ %> <%page args="active_page=None" /> <% if active_page is None and active_page_context is not UNDEFINED: # If active_page is not passed in as an argument, it may be in the context as active_page_context active_page = active_page_context def url_class(is_active): if is_active: return "active" return "" %> <%! from xmodule.tabs import CourseTabList %> <%! from courseware.access import has_access %> <%! from student.models import UserProfile %> <%! from django.conf import settings %> <%! from django.core.urlresolvers import reverse %> <%! from django.utils.translation import ugettext as _ %> <%! from courseware.views import notification_image_for_tab %> <% import waffle %> % if course and user.is_authenticated() and not UserProfile.has_registered(user):

<% if settings.FEATURES.get('RESTRICT_ENROLL_BY_REG_METHOD'): reg_url = reverse('course-specific-register', args=[course.id.to_deprecated_string()]) else: reg_url = reverse('register_user') %> ${_("Non-registered mode. {tag_start}Register{tag_end} to save your course progress.")\ .format(platform_name=settings.PLATFORM_NAME, tag_start="".format(reg_url), tag_end="")}

% endif % if disable_tabs is UNDEFINED or not disable_tabs: %endif % if masquerade is not UNDEFINED: % if staff_access and masquerade is not None: % endif % endif