From 0b620ebbc1732105eba121bb8b2241615f31b77b Mon Sep 17 00:00:00 2001 From: Eric Fischer Date: Thu, 12 Jan 2017 13:50:05 -0500 Subject: [PATCH] Revert "Merge pull request #14225 from edx/efischer/tnl-6108" This reverts commit 8b8cf5f9e03a7baf8651448d91b93294d35dd5a4, reversing changes made to 2716ffbf8edb8fa957e1aa5f9afd242a4a44c390. --- cms/djangoapps/contentstore/views/item.py | 1 - .../js/views/modals/course_outline_modals.js | 5 +- .../js/content-visibility-editor.underscore | 16 +-- cms/templates/js/course-outline.underscore | 7 +- common/lib/xmodule/xmodule/seq_module.py | 32 +++-- .../xmodule/xmodule/tests/test_sequence.py | 133 +++++++++--------- .../test/acceptance/pages/lms/courseware.py | 4 +- .../transformers/hidden_content.py | 14 +- lms/djangoapps/courseware/tests/test_views.py | 2 +- lms/templates/hidden_content.html | 49 +++---- 10 files changed, 112 insertions(+), 151 deletions(-) diff --git a/cms/djangoapps/contentstore/views/item.py b/cms/djangoapps/contentstore/views/item.py index f1789eeff8..df448141fd 100644 --- a/cms/djangoapps/contentstore/views/item.py +++ b/cms/djangoapps/contentstore/views/item.py @@ -981,7 +981,6 @@ 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 8bfe529220..281c4243d3 100644 --- a/cms/static/js/views/modals/course_outline_modals.js +++ b/cms/static/js/views/modals/course_outline_modals.js @@ -712,10 +712,7 @@ define(['jquery', 'backbone', 'underscore', 'gettext', 'js/views/baseview', return $.extend( {}, AbstractVisibilityEditor.prototype.getContext.call(this), - { - hide_after_due: this.modelVisibility() === 'hide_after_due', - self_paced: this.model.get('self_paced') === true - } + {hide_after_due: this.modelVisibility() === 'hide_after_due'} ); } }); diff --git a/cms/templates/js/content-visibility-editor.underscore b/cms/templates/js/content-visibility-editor.underscore index e66ae634c8..e80830ecd0 100644 --- a/cms/templates/js/content-visibility-editor.underscore +++ b/cms/templates/js/content-visibility-editor.underscore @@ -12,19 +12,9 @@
  • -

    - <% 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.') %> - <% } %> -

    +

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