<commit_before><%page expression_filter="h"/>
<%inherit file="base.html" />
<%def name="online_help_token()">
<%
if is_unit_page:
    return "unit"
else:
    return "container"
%>
</%def>
<%!
from django.utils.translation import ugettext as _

from contentstore.views.helpers import xblock_studio_url, xblock_type_display_name
from openedx.core.djangolib.js_utils import (
    dump_js_escaped_json, js_escaped_string
)
from openedx.core.djangolib.markup import HTML, Text
%>

<%block name="title">${xblock.display_name_with_default} ${xblock_type_display_name(xblock)}</%block>
<%block name="bodyclass">is-signedin course container view-container</%block>

<%namespace name='static' file='static_content.html'/>

<%block name="header_extras">
% for template_name in templates:
<script type="text/template" id="${template_name}-tpl">
    <%static:include path="js/${template_name}.underscore" />
</script>
% endfor
<script type="text/template" id="image-modal-tpl">
    <%static:include path="common/templates/image-modal.underscore" />
</script>
<link rel="stylesheet" type="text/css" href="${static.url('js/vendor/timepicker/jquery.timepicker.css')}" />
% if not settings.STUDIO_FRONTEND_CONTAINER_URL:
    <link rel="stylesheet" type="text/css" href="${static.url('common/css/vendor/common.min.css')}" />
    <link rel="stylesheet" type="text/css" href="${static.url('common/css/vendor/editImageModal.min.css')}" />
% endif
</%block>

<%block name="page_bundle">
    <%static:webpack entry="js/factories/container">
        ContainerFactory(
            ${component_templates | n, dump_js_escaped_json},
            ${xblock_info | n, dump_js_escaped_json},
            "${action | n, js_escaped_string}",
            {
                isUnitPage: ${is_unit_page | n, dump_js_escaped_json},
                canEdit: true,
                outlineURL: "${outline_url | n, js_escaped_string}"
            }
        );
        require(["js/models/xblock_info", "js/views/xblock", "js/views/utils/xblock_utils", "common/js/components/utils/view_utils"], function (XBlockInfo, XBlockView, XBlockUtils, ViewUtils) {
            var model = new XBlockInfo({
                id: '${subsection.location|n, decode.utf8}'
            });
            var xblockView = new XBlockView({
                model: model,
                el: $('#sequence-nav'),
                view: 'author_view?position=${position|n, decode.utf8}&next_url=${next_url|n, decode.utf8}&prev_url=${prev_url|n, decode.utf8}'
            });
            xblockView.xblockReady = function() {
                $('.seq_new_button').click(function(evt) {
                    evt.preventDefault();
                    XBlockUtils.addXBlock($(evt.target)).done(function(locator) {
                        ViewUtils.redirect('/container/' + locator + '?action=new');
                        return false;
                    });
                    return false;
                });

            };
            xblockView.render();
        });
    </%static:webpack>
</%block>

<%block name="content">

<script type="text/javascript">
    window.STUDIO_FRONTEND_IN_CONTEXT_IMAGE_SELECTION = true;
</script>


<div class="wrapper-mast wrapper">
    <header class="mast has-actions has-navigation has-subtitle">
        <div class="jump-nav">
            <nav class="nav-dd title ui-left">
                <ol>
                % for block in ancestor_xblocks:
                    <li class="nav-item">
                        <span class="title label">${block['title']}
                            <span class="icon fa fa-caret-down ui-toggle-dd" aria-hidden="true"></span>
                        </span>
                        % if not block['is_last']:
                        <span class="spacer"> &rsaquo;</span>
                        % endif
                        <div class="wrapper wrapper-nav-sub">
                            <div class="nav-sub">
                                <ul>
                                % for child in block['children']:
                                <li class="nav-item">
                                    <a href="${xblock_studio_url(child)}">${child.display_name_with_default}</a>
                                </li>
                                % endfor
                                </ul>
                            </div>
                        </div>
                    </li>
                % endfor
                </ol>
            </nav>

              <div class="wrapper-xblock-field incontext-editor is-editable"
                 data-field="display_name" data-field-display-name="${_("Display Name")}">
                <h1 class="page-header-title xblock-field-value incontext-editor-value"><span class="title-value">${xblock.display_name_with_default}</span></h1>
            </div>
            <div class="container-access">
            </div>
        </div>

        <nav class="nav-actions" aria-label="${_('Page Actions')}">
            <h3 class="sr">${_("Page Actions")}</h3>
            <ul>
                % if is_unit_page:
                    <li class="action-item action-view nav-item">
                        <a href="${published_preview_link}" class="button button-view action-button is-disabled" aria-disabled="true" rel="external" title="${_('Open the courseware in the LMS')}">
                            <span class="action-button-text">${_("View Live Version")}</span>
                        </a>
                    </li>
                    <li class="action-item action-preview nav-item"><commit_msg>Fix showing links with none on breadcrumb (#2005)<commit_after><%page expression_filter="h"/>
<%inherit file="base.html" />
<%def name="online_help_token()">
<%
if is_unit_page:
    return "unit"
else:
    return "container"
%>
</%def>
<%!
from django.utils.translation import ugettext as _

from contentstore.views.helpers import xblock_studio_url, xblock_type_display_name
from openedx.core.djangolib.js_utils import (
    dump_js_escaped_json, js_escaped_string
)
from openedx.core.djangolib.markup import HTML, Text
%>

<%block name="title">${xblock.display_name_with_default} ${xblock_type_display_name(xblock)}</%block>
<%block name="bodyclass">is-signedin course container view-container</%block>

<%namespace name='static' file='static_content.html'/>

<%block name="header_extras">
% for template_name in templates:
<script type="text/template" id="${template_name}-tpl">
    <%static:include path="js/${template_name}.underscore" />
</script>
% endfor
<script type="text/template" id="image-modal-tpl">
    <%static:include path="common/templates/image-modal.underscore" />
</script>
<link rel="stylesheet" type="text/css" href="${static.url('js/vendor/timepicker/jquery.timepicker.css')}" />
% if not settings.STUDIO_FRONTEND_CONTAINER_URL:
    <link rel="stylesheet" type="text/css" href="${static.url('common/css/vendor/common.min.css')}" />
    <link rel="stylesheet" type="text/css" href="${static.url('common/css/vendor/editImageModal.min.css')}" />
% endif
</%block>

<%block name="page_bundle">
    <%static:webpack entry="js/factories/container">
        ContainerFactory(
            ${component_templates | n, dump_js_escaped_json},
            ${xblock_info | n, dump_js_escaped_json},
            "${action | n, js_escaped_string}",
            {
                isUnitPage: ${is_unit_page | n, dump_js_escaped_json},
                canEdit: true,
                outlineURL: "${outline_url | n, js_escaped_string}"
            }
        );
        require(["js/models/xblock_info", "js/views/xblock", "js/views/utils/xblock_utils", "common/js/components/utils/view_utils"], function (XBlockInfo, XBlockView, XBlockUtils, ViewUtils) {
            var model = new XBlockInfo({
                id: '${subsection.location|n, decode.utf8}'
            });
            var xblockView = new XBlockView({
                model: model,
                el: $('#sequence-nav'),
                view: 'author_view?position=${position|n, decode.utf8}&next_url=${next_url|n, decode.utf8}&prev_url=${prev_url|n, decode.utf8}'
            });
            xblockView.xblockReady = function() {
                $('.seq_new_button').click(function(evt) {
                    evt.preventDefault();
                    XBlockUtils.addXBlock($(evt.target)).done(function(locator) {
                        ViewUtils.redirect('/container/' + locator + '?action=new');
                        return false;
                    });
                    return false;
                });

            };
            xblockView.render();
        });
    </%static:webpack>
</%block>

<%block name="content">

<script type="text/javascript">
    window.STUDIO_FRONTEND_IN_CONTEXT_IMAGE_SELECTION = true;
</script>


<div class="wrapper-mast wrapper">
    <header class="mast has-actions has-navigation has-subtitle">
        <div class="jump-nav">
            <nav class="nav-dd title ui-left">
                <ol>
                % for block in ancestor_xblocks:
                    <li class="nav-item">
                        <span class="title label">${block['title']}
                            <span class="icon fa fa-caret-down ui-toggle-dd" aria-hidden="true"></span>
                        </span>
                        % if not block['is_last']:
                        <span class="spacer"> &rsaquo;</span>
                        % endif
                        <div class="wrapper wrapper-nav-sub">
                            <div class="nav-sub">
                                <ul>
                                % for child in block['children']:
                                    <%
                                    url = xblock_studio_url(child)
                                    %>
                                    % if url:
                                        <li class="nav-item">
                                            <a href="${url}">${child.display_name_with_default}</a>
                                        </li>
                                    % endif
                                % endfor
                                </ul>
                            </div>
                        </div>
                    </li>
                % endfor
                </ol>
            </nav>

              <div class="wrapper-xblock-field incontext-editor is-editable"
                 data-field="display_name" data-field-display-name="${_("Display Name")}">
                <h1 class="page-header-title xblock-field-value incontext-editor-value"><span class="title-value">${xblock.display_name_with_default}</span></h1>
            </div>
            <div class="container-access">
            </div>
        </div>

        <nav class="nav-actions" aria-label="${_('Page Actions')}">
            <h3 class="sr">${_("Page Actions")}</h3>
            <ul>
                % if is_unit_page:
                    <li class="action-item action-view nav-item">
                        <a href="${published_preview_link}" class="button button-view action-button is-disabled" aria-disabled="true" rel="external" title="${_('Open the courseware in the LMS')}">
                            <span class="action-button-text">${_("View Live Version")}</span>
                        </a>
                    </li>
                    <li class="action-item action-preview nav-item">
{'fraction_non_alphanumeric': 0.14452644526445266, 'fraction_numerical': 0.0017571604287471446, 'mean_word_length': 1.858613761928679, 'pattern_counts': {'":': 0, '<': 152, '<?xml version=': 0, '>': 152, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 17, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7121763', 'n_tokens_mistral': 3297, 'n_tokens_neox': 3159, 'n_words': 555}