<%! from django.utils.translation import ugettext as _ from contentstore.views.helpers import xblock_studio_url %> <% 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 "" %> % if not is_root: % if is_reorderable:
  • % else:
    % endif
    % endif
    % if show_inline: ${_('Expand or Collapse')} % endif ${xblock.display_name_with_default | h}
    % if xblock_url and not is_root: % endif
    % if is_root or not xblock_url:
    ${content}
    % else:
    ${content}
    % endif % if not is_root:
    % if is_reorderable:
  • % else: % endif % endif