Commit a78c913d by Christina Roberts

Merge pull request #872 from edx/christina/about-page

Don't show course about page link when we have the marketing site.
parents 25ce1fe7 4e677836
...@@ -118,7 +118,8 @@ class CourseDetailsTestCase(CourseTestCase): ...@@ -118,7 +118,8 @@ class CourseDetailsTestCase(CourseTestCase):
with mock.patch.dict('django.conf.settings.MITX_FEATURES', {'ENABLE_MKTG_SITE': True}): with mock.patch.dict('django.conf.settings.MITX_FEATURES', {'ENABLE_MKTG_SITE': True}):
response = self.client.get(settings_details_url) 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 summary page will not be viewable")
self.assertContains(response, "Course Start Date") self.assertContains(response, "Course Start Date")
...@@ -143,6 +144,7 @@ class CourseDetailsTestCase(CourseTestCase): ...@@ -143,6 +144,7 @@ class CourseDetailsTestCase(CourseTestCase):
with mock.patch.dict('django.conf.settings.MITX_FEATURES', {'ENABLE_MKTG_SITE': False}): with mock.patch.dict('django.conf.settings.MITX_FEATURES', {'ENABLE_MKTG_SITE': False}):
response = self.client.get(settings_details_url) response = self.client.get(settings_details_url)
self.assertContains(response, "Course Summary Page") 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.assertNotContains(response, "course summary page will not be viewable")
self.assertContains(response, "Course Start Date") self.assertContains(response, "Course Start Date")
......
...@@ -91,6 +91,7 @@ from contentstore import utils ...@@ -91,6 +91,7 @@ from contentstore import utils
</li> </li>
</ol> </ol>
% if about_page_editable:
<div class="note note-promotion note-promotion-courseURL has-actions"> <div class="note note-promotion note-promotion-courseURL has-actions">
<h3 class="title">${_("Course Summary Page")} <span class="tip">${_("(for student enrollment and access)")}</span></h3> <h3 class="title">${_("Course Summary Page")} <span class="tip">${_("(for student enrollment and access)")}</span></h3>
<div class="copy"> <div class="copy">
...@@ -103,6 +104,7 @@ from contentstore import utils ...@@ -103,6 +104,7 @@ from contentstore import utils
</li> </li>
</ul> </ul>
</div> </div>
% endif
% if not about_page_editable: % if not about_page_editable:
<div class="notice notice-incontext notice-workflow"> <div class="notice notice-incontext notice-workflow">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment