diff --git a/cms/djangoapps/contentstore/views/course.py b/cms/djangoapps/contentstore/views/course.py index 9670ee3cf5..abcbb67397 100644 --- a/cms/djangoapps/contentstore/views/course.py +++ b/cms/djangoapps/contentstore/views/course.py @@ -553,11 +553,8 @@ def _deprecated_blocks_info(course_module, deprecated_block_types): except errors.CourseStructureNotAvailableError: return data - blocks = [] for block in structure_data['blocks'].values(): - blocks.append([reverse_usage_url('container_handler', block['parent']), block['display_name']]) - - data['blocks'].extend(blocks) + data['blocks'].append([reverse_usage_url('container_handler', block['parent']), block['display_name']]) return data diff --git a/cms/templates/course_outline.html b/cms/templates/course_outline.html index 6c1f97d90e..16b34e31fe 100644 --- a/cms/templates/course_outline.html +++ b/cms/templates/course_outline.html @@ -1,3 +1,4 @@ +<%page expression_filter="h"/> <%inherit file="base.html" /> <%def name="online_help_token()"><% return "outline" %>%def> <%! @@ -7,6 +8,7 @@ from django.utils.translation import ugettext as _ from openedx.core.djangolib.js_utils import dump_js_escaped_json from contentstore.utils import reverse_usage_url from openedx.core.djangoapps.self_paced.models import SelfPacedConfiguration +from openedx.core.djangolib.markup import Text, HTML %> <%block name="title">${_("Course Outline")}%block> <%block name="bodyclass">is-signedin course view-outline%block> @@ -71,7 +73,7 @@ from openedx.core.djangoapps.self_paced.models import SelfPacedConfiguration % for component_parent_url, component_display_name in deprecated_blocks_info['blocks']:
- ${_("To avoid errors, {platform_name} strongly recommends that you remove unsupported features from the course advanced settings. To do this, go to the {link_start}Advanced Settings page{link_end}, locate the \"Advanced Module List\" setting, and then delete the following modules from the list.").format( + ${Text(_("To avoid errors, {platform_name} strongly recommends that you remove unsupported features from the course advanced settings. To do this, go to the {link_start}Advanced Settings page{link_end}, locate the \"Advanced Module List\" setting, and then delete the following modules from the list.")).format( platform_name=static.get_platform_name(), - link_start=''.format(advance_settings_url=deprecated_blocks_info['advance_settings_url']), link_end="" + link_start=HTML('').format(advance_settings_url=deprecated_blocks_info['advance_settings_url']), + link_end=HTML("") )}
${_("Select the Configure icon for a section or subsection to set its release date. When you configure a subsection, you can also set the grading policy and due date.")}
${_("To publish draft content, select the Publish icon for a section, subsection, or unit.")}
-${_("To hide content from students, select the Configure icon for a section, subsection, or unit, then select {em_start}Hide from students{em_end}.").format(em_start='', em_end="")}
+${Text(_("To hide content from students, select the Configure icon for a section, subsection, or unit, then select {em_start}Hide from students{em_end}.")).format(em_start=HTML(""), em_end=HTML(""))}