## coding=utf-8 ## mako ## Pages currently use v1 styling by default. Once the Pattern Library ## rollout has been completed, this default can be switched to v2. <%! main_css = "style-main-v1" %> <%! course_unit_mfe_iframe_css = "course-unit-mfe-iframe-bundle" %> ## Standard imports <%namespace name='static' file='static_content.html'/> <%! from django.utils.translation import gettext as _ from cms.djangoapps.contentstore.config.waffle import CUSTOM_RELATIVE_DATES from lms.djangoapps.branding import api as branding_api from openedx.core.djangolib.js_utils import dump_js_escaped_json, js_escaped_string from cms.djangoapps.contentstore.helpers import xblock_type_display_name from openedx.core.release import RELEASE_LINE %> <%def name="online_help_token()"> <% return "container" %> %def> <%page expression_filter="h"/>
<% jsi18n_path = "js/i18n/{language}/djangojs.js".format(language=LANGUAGE_CODE) %> % if getattr(settings, 'CAPTURE_CONSOLE_LOG', False): % endif % if settings.DEBUG: % endif <%static:css group='style-vendor'/> <%static:css group='style-vendor-tinymce-content'/> <%static:css group='style-vendor-tinymce-skin'/> <%static:css group='${self.attr.course_unit_mfe_iframe_css}'/> % if uses_bootstrap: % else: <%static:css group='${self.attr.main_css}'/> % endif <%include file="widgets/segment-io.html" /> <%block name="header_extras"> % for template_name in templates: % endfor % for _, resource in resources: % if resource['kind'] == 'url' and resource['mimetype'] == 'text/css': % endif % endfor %block> <%static:js group='base_vendor' /> <%static:webpack entry='commons' /> <%block name='page_bundle'> <%static:webpack entry="js/factories/container"> require(['js/models/xblock_info', 'js/views/modals/edit_xblock'], function (XBlockInfo, EditXBlockModal) { var decodedActionName = '${action_name|n, decode.utf8}'; var encodedXBlockDetails = ${xblock_info | n, dump_js_escaped_json}; if (decodedActionName === 'edit') { var editXBlockModal = new EditXBlockModal(); var xblockInfoInstance = new XBlockInfo(encodedXBlockDetails); editXBlockModal.edit([], xblockInfoInstance, {}); } }); %static:webpack> %block>