<%page expression_filter="h"/> <%! from django.utils.translation import gettext as _ from cms.djangoapps.contentstore.helpers import xblock_studio_url from cms.djangoapps.contentstore.utils import is_visible_to_specific_partition_groups, get_editor_page_base_url, determine_label from lms.lib.utils import is_unit from openedx.core.djangolib.js_utils import ( dump_js_escaped_json, js_escaped_string ) from cms.djangoapps.contentstore.toggles import use_new_text_editor, use_new_problem_editor, use_new_video_editor, use_video_gallery_flow from cms.lib.xblock.upstream_sync import UpstreamLink from openedx.core.djangoapps.content_tagging.toggles import is_tagging_feature_disabled %> <% use_new_editor_text = use_new_text_editor() use_new_editor_video = use_new_video_editor() use_new_editor_problem = use_new_problem_editor() use_new_video_gallery_flow = use_video_gallery_flow() use_tagging = not is_tagging_feature_disabled() xblock_url = xblock_studio_url(xblock) show_inline = xblock.has_children and not xblock_url section_class = "level-nesting" if show_inline else "level-element" label = determine_label(xblock.display_name_with_default, xblock.scope_ids.block_type) messages = xblock.validate().to_json() has_not_configured_message = messages.get('summary',{}).get('type', None) == 'not-configured' block_is_unit = is_unit(xblock) upstream_info = UpstreamLink.try_get_for_block(xblock) %> <%namespace name='static' file='static_content.html'/> <%block name="header_extras"> <%static:webpack entry="js/factories/tag_count"> TagCountFactory({ tags_count: "${tags_count | n, js_escaped_string}", content_id: "${xblock.location | n, js_escaped_string}", course_authoring_url: "${course_authoring_url | n, js_escaped_string}", }, $('li.tag-count[data-locator="${xblock.location | n, js_escaped_string}"]') ); % if not is_root: % if is_reorderable:
  • % else:
    % endif

    ${_("Importing components")}

    % endif
    % if not is_root:
    % if xblock_url and not has_not_configured_message: % endif % endif
    % if is_root:
    % endif % if show_preview: % if is_root or not xblock_url: % if not is_root and language:
    % else:
    % endif ${content | n, decode.utf8}
    % else:
    ${content | n, decode.utf8}
    % endif % endif % if not is_root:
    % if is_reorderable:
  • % else: % endif % endif