diff --git a/cms/djangoapps/contentstore/views/item.py b/cms/djangoapps/contentstore/views/item.py index df448141fd..f1789eeff8 100644 --- a/cms/djangoapps/contentstore/views/item.py +++ b/cms/djangoapps/contentstore/views/item.py @@ -981,6 +981,7 @@ def create_xblock_info(xblock, data=None, metadata=None, include_ancestor_info=F "release_date": release_date, "visibility_state": visibility_state, "has_explicit_staff_lock": xblock.fields['visible_to_staff_only'].is_set_on(xblock), + "self_paced": is_self_paced(course), "start": xblock.fields['start'].to_json(xblock.start), "graded": xblock.graded, "due_date": get_default_time_display(xblock.due), diff --git a/cms/static/js/views/modals/course_outline_modals.js b/cms/static/js/views/modals/course_outline_modals.js index 281c4243d3..8bfe529220 100644 --- a/cms/static/js/views/modals/course_outline_modals.js +++ b/cms/static/js/views/modals/course_outline_modals.js @@ -712,7 +712,10 @@ define(['jquery', 'backbone', 'underscore', 'gettext', 'js/views/baseview', return $.extend( {}, AbstractVisibilityEditor.prototype.getContext.call(this), - {hide_after_due: this.modelVisibility() === 'hide_after_due'} + { + hide_after_due: this.modelVisibility() === 'hide_after_due', + self_paced: this.model.get('self_paced') === true + } ); } }); diff --git a/cms/templates/js/content-visibility-editor.underscore b/cms/templates/js/content-visibility-editor.underscore index e80830ecd0..e66ae634c8 100644 --- a/cms/templates/js/content-visibility-editor.underscore +++ b/cms/templates/js/content-visibility-editor.underscore @@ -12,9 +12,19 @@
  • -

    <%- gettext('After the subsection\'s due date has passed, learners can no longer access its content. The subsection remains included in grade calculations.') %>

    +

    + <% if (self_paced) { %> + <%- gettext('After the course\'s end date has passed, learners can no longer access subsection content. The subsection remains included in grade calculations.') %> + <% } else { %> + <%- gettext('After the subsection\'s due date has passed, learners can no longer access its content. The subsection remains included in grade calculations.') %> + <% } %> +