## 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 courseware.tabs import get_course_tab_list %>
<%! from courseware.views import notification_image_for_tab %>
<%! from django.core.urlresolvers import reverse %>
<%! from openedx.core.djangoapps.course_groups.partition_scheme import get_cohorted_user_partition %>
<%! from student.models import CourseEnrollment %>
<%
cohorted_user_partition = get_cohorted_user_partition(course.id)
show_preview_menu = staff_access and active_page in ['courseware', 'info']
is_student_masquerade = masquerade and masquerade.role == 'student'
masquerade_group_id = masquerade.group_id if masquerade else None
%>
% if show_preview_menu:
% endif
% if disable_tabs is UNDEFINED or not disable_tabs:
%endif
% if show_preview_menu:
% endif