%! from django.utils.translation import ugettext as _ from contentstore.views.helpers import xblock_studio_url from contentstore.utils import is_visible_to_specific_content_groups 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() %> <%namespace name='static' file='static_content.html'/> <%block name="header_extras"> %block> % if not is_root: % if is_reorderable: