Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
4e677836
Commit
4e677836
authored
Sep 05, 2013
by
cahrens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't show course about page link when we have the marketing site.
STUD-733
parent
545d5770
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
+5
-1
cms/djangoapps/contentstore/tests/test_course_settings.py
+3
-1
cms/templates/settings.html
+2
-0
No files found.
cms/djangoapps/contentstore/tests/test_course_settings.py
View file @
4e677836
...
...
@@ -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"
)
...
...
cms/templates/settings.html
View file @
4e677836
...
...
@@ -91,6 +91,7 @@ from contentstore import utils
</li>
</ol>
% if about_page_editable:
<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>
<div
class=
"copy"
>
...
...
@@ -103,6 +104,7 @@ from contentstore import utils
</li>
</ul>
</div>
% endif
% if not about_page_editable:
<div
class=
"notice notice-incontext notice-workflow"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment