%page expression_filter="h"/> <% from django.conf import settings from django.utils.translation import ugettext as _ from contentstore.utils import ancestor_has_staff_lock, get_visibility_partition_info from openedx.core.djangolib.markup import HTML, Text from lms.lib.utils import is_unit partition_info = get_visibility_partition_info(xblock) selectable_partitions = partition_info["selectable_partitions"] selected_partition_index = partition_info["selected_partition_index"] selected_groups_label = partition_info["selected_groups_label"] is_staff_locked = ancestor_has_staff_lock(xblock) block_is_unit = is_unit(xblock) %>
${_('Access to this unit is not restricted, but visibility might be affected by inherited settings.')}
% else:${_('Access to this component is not restricted, but visibility might be affected by inherited settings.')}
%endif % if settings.FEATURES.get('ENABLE_ENROLLMENT_TRACK_USER_PARTITION'): % if block_is_unit:${_('You can restrict access to this unit to learners in specific enrollment tracks or content groups.')}
% else:${_('You can restrict access to this component to learners in specific enrollment tracks or content groups.')}
% endif % else: % if block_is_unit:${_('You can restrict access to this unit to learners in specific content groups.')}
% else:${_('You can restrict access to this component to learners in specific content groups.')}
% endif % endif