<%page expression_filter="h"/> <%! from django.utils.translation import ugettext as _ from contentstore.views.helpers import xblock_studio_url from contentstore.utils import is_visible_to_specific_partition_groups from lms.lib.utils import is_unit from openedx.core.djangolib.js_utils import ( dump_js_escaped_json, js_escaped_string ) %> <% 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" collapsible_class = "is-collapsible" if xblock.has_children else "" label = xblock.display_name_with_default or xblock.scope_ids.block_type messages = xblock.validate().to_json() block_is_unit = is_unit(xblock) %> <%namespace name='static' file='static_content.html'/> <%block name="header_extras"> % if not is_root: % if is_reorderable:
  • % else:
    % endif
    % endif
    % if not is_root:
    % if xblock_url: % 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