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
0a6565b8
Commit
0a6565b8
authored
Sep 05, 2013
by
Chris Dodge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
also even when we have a marketing site, we still need a course image for the dashboard
parent
9aa024b5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
5 deletions
+14
-5
cms/djangoapps/contentstore/tests/test_course_settings.py
+4
-1
cms/static/js/views/settings/main_settings_view.js
+4
-1
cms/templates/settings.html
+6
-3
No files found.
cms/djangoapps/contentstore/tests/test_course_settings.py
View file @
0a6565b8
...
...
@@ -128,7 +128,10 @@ class CourseDetailsTestCase(CourseTestCase):
self
.
assertContains
(
response
,
"Enrollment End Date"
)
self
.
assertContains
(
response
,
"not the dates shown on your course summary page"
)
self
.
assertNotContains
(
response
,
"Introducing Your Course"
)
self
.
assertContains
(
response
,
"Introducing Your Course"
)
self
.
assertContains
(
response
,
"Course Image"
)
self
.
assertNotContains
(
response
,
"Course Overview"
)
self
.
assertNotContains
(
response
,
"Course Introduction Video"
)
self
.
assertNotContains
(
response
,
"Requirements"
)
def
test_regular_site_fetch
(
self
):
...
...
cms/static/js/views/settings/main_settings_view.js
View file @
0a6565b8
...
...
@@ -184,8 +184,11 @@ CMS.Views.Settings.Details = CMS.Views.ValidatingView.extend({
if
(
forcedTarget
)
{
thisTarget
=
forcedTarget
;
thisTarget
.
id
=
$
(
thisTarget
).
attr
(
'id'
);
}
else
{
}
else
if
(
e
!==
null
)
{
thisTarget
=
e
.
currentTarget
;
}
else
{
return
;
}
if
(
!
this
.
codeMirrors
[
thisTarget
.
id
])
{
...
...
cms/templates/settings.html
View file @
0a6565b8
...
...
@@ -194,14 +194,13 @@ from contentstore import utils
% endif
</section>
<hr
class=
"divide"
/>
% if about_page_editable:
<section
class=
"group-settings marketing"
>
<header>
<h2
class=
"title-2"
>
${_("Introducing Your Course")}
</h2>
<span
class=
"tip"
>
${_("Information for prospective students")}
</span>
</header>
<ol
class=
"list-input"
>
% if about_page_editable:
<li
class=
"field text"
id=
"field-course-overview"
>
<label
for=
"course-overview"
>
${_("Course Overview")}
</label>
<textarea
class=
"tinymce text-editor"
id=
"course-overview"
></textarea>
...
...
@@ -213,6 +212,7 @@ from contentstore import utils
%>${text}
</
%
def>
<span
class=
"tip tip-stacked"
>
${overview_text()}
</span>
</li>
% endif
<li
class=
"field image"
id=
"field-course-image"
>
<label>
${_("Course Image")}
</label>
...
...
@@ -242,6 +242,7 @@ from contentstore import utils
</div>
</li>
% if about_page_editable:
<li
class=
"field video"
id=
"field-course-introduction-video"
>
<label
for=
"course-overview"
>
${_("Course Introduction Video")}
</label>
<div
class=
"input input-existing"
>
...
...
@@ -258,9 +259,11 @@ from contentstore import utils
<span
class=
"tip tip-stacked"
>
${_("Enter your YouTube video's ID (along with any restriction parameters)")}
</span>
</div>
</li>
% endif
</ol>
</section>
% if about_page_editable:
<hr
class=
"divide"
/>
<section
class=
"group-settings requirements"
>
...
...
@@ -277,7 +280,7 @@ from contentstore import utils
</li>
</ol>
</section>
% endif
% endif
</form>
</article>
<aside
class=
"content-supplementary"
role=
"complimentary"
>
...
...
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