diff --git a/cms/djangoapps/contentstore/tests/test_utils.py b/cms/djangoapps/contentstore/tests/test_utils.py index c29231b2ea..194e5859d2 100644 --- a/cms/djangoapps/contentstore/tests/test_utils.py +++ b/cms/djangoapps/contentstore/tests/test_utils.py @@ -154,7 +154,7 @@ class XBlockVisibilityTestCase(ModuleStoreTestCase): super(XBlockVisibilityTestCase, self).setUp() self.dummy_user = ModuleStoreEnum.UserID.test - self.past = datetime(1970, 1, 1) + self.past = datetime(1970, 1, 1, tzinfo=UTC) self.future = datetime.now(UTC) + timedelta(days=1) self.course = CourseFactory.create() diff --git a/cms/static/js/index.js b/cms/static/js/index.js index e1c91d03a1..e4470ea22c 100644 --- a/cms/static/js/index.js +++ b/cms/static/js/index.js @@ -141,6 +141,8 @@ define(["domReady", "jquery", "underscore", "js/utils/cancel_on_escape", "js/vie e.preventDefault(); $('.courses-tab').toggleClass('active', tab === 'courses'); $('.libraries-tab').toggleClass('active', tab === 'libraries'); + // Also toggle this course-related notice shown below the course tab, if it is present: + $('.wrapper-creationrights').toggleClass('is-hidden', tab === 'libraries'); }; }; diff --git a/cms/templates/index.html b/cms/templates/index.html index c4ca6e0685..d8fe4389dd 100644 --- a/cms/templates/index.html +++ b/cms/templates/index.html @@ -103,57 +103,57 @@ - %if libraries_enabled: -