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
08ab462c
Commit
08ab462c
authored
Sep 26, 2017
by
Harry Rein
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove old messaging wells.
LEARNER-2236
parent
ed9b93ff
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
61 deletions
+0
-61
openedx/features/course_experience/templates/course_experience/course-outline-fragment.html
+0
-31
openedx/features/course_experience/tests/views/test_course_outline.py
+0
-30
No files found.
openedx/features/course_experience/templates/course_experience/course-outline-fragment.html
View file @
08ab462c
...
@@ -121,37 +121,6 @@ from openedx.core.djangolib.markup import HTML, Text
...
@@ -121,37 +121,6 @@ from openedx.core.djangolib.markup import HTML, Text
</li>
</li>
% endfor
% endfor
</ol>
</ol>
% else:
<div
class=
"well depth-0 message-area"
>
<div
class=
"copy-large"
>
<span
class=
"icon fa fa-calendar-o"
aria-hidden=
"true"
></span>
<
%
course_started =
course.start.date()
<=
date
.
today
()
%
>
% if course.start_date_is_still_default:
${_("This course has not started yet.")}
% elif course_started:
${_("We're still working on course content.")}
% else:
${Text(_("This course has not started yet, and will launch on {launch_date_html}.")).format(
launch_date_html=HTML(
'
<span
'
'
class=
"localized-datetime start-date"
'
'
data-datetime=
"{start_date}"
'
'
data-format=
"shortDate"
'
'
data-timezone=
"{user_timezone}"
'
'
data-language=
"{user_language}"
'
'
></span>
'
).format(
start_date=course.start,
user_timezone=user_timezone,
user_language=user_language,
),
)}
% endif
</div>
</div>
% endif
% endif
</main>
</main>
...
...
openedx/features/course_experience/tests/views/test_course_outline.py
View file @
08ab462c
...
@@ -334,33 +334,3 @@ class TestCourseOutlinePreview(SharedModuleStoreTestCase):
...
@@ -334,33 +334,3 @@ class TestCourseOutlinePreview(SharedModuleStoreTestCase):
response
=
self
.
client
.
get
(
url
)
response
=
self
.
client
.
get
(
url
)
self
.
assertEqual
(
response
.
status_code
,
200
)
self
.
assertEqual
(
response
.
status_code
,
200
)
self
.
assertNotContains
(
response
,
'Future Chapter'
)
self
.
assertNotContains
(
response
,
'Future Chapter'
)
@ddt.ddt
class
TestEmptyCourseOutlinePage
(
SharedModuleStoreTestCase
):
"""
Test the new course outline view.
"""
FUTURE_DAY
=
'future_day'
PAST_DAY
=
'past_day'
DATES
=
{
'default_start_date'
:
DEFAULT_START_DATE
,
FUTURE_DAY
:
datetime
.
datetime
.
now
()
+
datetime
.
timedelta
(
days
=
30
),
PAST_DAY
:
datetime
.
datetime
.
now
()
-
datetime
.
timedelta
(
days
=
30
),
}
@ddt.data
(
(
FUTURE_DAY
,
'This course has not started yet, and will launch on'
),
(
PAST_DAY
,
"We're still working on course content."
),
(
'default_start_date'
,
'This course has not started yet.'
),
)
@ddt.unpack
def
test_empty_course_rendering
(
self
,
start_date_name
,
expected_text
):
course
=
CourseFactory
.
create
(
start
=
self
.
DATES
[
start_date_name
])
test_user
=
UserFactory
(
password
=
TEST_PASSWORD
)
CourseEnrollment
.
enroll
(
test_user
,
course
.
id
)
self
.
client
.
login
(
username
=
test_user
.
username
,
password
=
TEST_PASSWORD
)
url
=
course_home_url
(
course
)
response
=
self
.
client
.
get
(
url
)
self
.
assertEqual
(
response
.
status_code
,
200
)
self
.
assertContains
(
response
,
escape
(
expected_text
))
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