From 4e677836445136f6f47849b08ba41aac8a1d9a8a Mon Sep 17 00:00:00 2001 From: cahrens Date: Thu, 5 Sep 2013 14:26:08 -0400 Subject: [PATCH] Don't show course about page link when we have the marketing site. STUD-733 --- cms/djangoapps/contentstore/tests/test_course_settings.py | 4 +++- cms/templates/settings.html | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/cms/djangoapps/contentstore/tests/test_course_settings.py b/cms/djangoapps/contentstore/tests/test_course_settings.py index 071b590490..286477228b 100644 --- a/cms/djangoapps/contentstore/tests/test_course_settings.py +++ b/cms/djangoapps/contentstore/tests/test_course_settings.py @@ -118,7 +118,8 @@ class CourseDetailsTestCase(CourseTestCase): with mock.patch.dict('django.conf.settings.MITX_FEATURES', {'ENABLE_MKTG_SITE': True}): response = self.client.get(settings_details_url) - self.assertContains(response, "Course Summary Page") + self.assertNotContains(response, "Course Summary Page") + self.assertNotContains(response, "Send a note to students via email") self.assertContains(response, "course summary page will not be viewable") self.assertContains(response, "Course Start Date") @@ -143,6 +144,7 @@ class CourseDetailsTestCase(CourseTestCase): with mock.patch.dict('django.conf.settings.MITX_FEATURES', {'ENABLE_MKTG_SITE': False}): response = self.client.get(settings_details_url) self.assertContains(response, "Course Summary Page") + self.assertContains(response, "Send a note to students via email") self.assertNotContains(response, "course summary page will not be viewable") self.assertContains(response, "Course Start Date") diff --git a/cms/templates/settings.html b/cms/templates/settings.html index 3f6be3312e..84e9155e6d 100644 --- a/cms/templates/settings.html +++ b/cms/templates/settings.html @@ -91,6 +91,7 @@ from contentstore import utils + % if about_page_editable:

${_("Course Summary Page")} ${_("(for student enrollment and access)")}

@@ -103,6 +104,7 @@ from contentstore import utils
+ % endif % if not about_page_editable: