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
ec45278b
Commit
ec45278b
authored
May 09, 2017
by
Douglas Hall
Committed by
GitHub
May 09, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #15073 from edx/douglashall/activation_email_followup
Remove edx.org theme override of activation email body.
parents
750d4487
0a313da6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
54 deletions
+1
-54
common/djangoapps/student/tests/test_email.py
+1
-10
themes/edx.org/lms/templates/emails/activation_email.txt
+0
-44
No files found.
common/djangoapps/student/tests/test_email.py
View file @
ec45278b
...
...
@@ -85,15 +85,6 @@ class ActivationEmailTests(TestCase):
)
]
# Text fragments we expect in the body of an email
# sent from an EdX-controlled domain.
EDX_DOMAIN_FRAGMENTS
=
[
u"Thank you for creating an account with {platform}!"
.
format
(
platform
=
settings
.
PLATFORM_NAME
),
"http://edx.org/activate/"
,
"https://www.edx.org/contact-us"
,
"This email message was automatically sent by edx.org"
]
def
test_activation_email
(
self
):
self
.
_create_account
()
self
.
_assert_activation_email
(
self
.
ACTIVATION_SUBJECT
,
self
.
OPENEDX_FRAGMENTS
)
...
...
@@ -101,7 +92,7 @@ class ActivationEmailTests(TestCase):
@with_comprehensive_theme
(
"edx.org"
)
def
test_activation_email_edx_domain
(
self
):
self
.
_create_account
()
self
.
_assert_activation_email
(
self
.
ACTIVATION_SUBJECT
,
self
.
EDX_DOMAIN
_FRAGMENTS
)
self
.
_assert_activation_email
(
self
.
ACTIVATION_SUBJECT
,
self
.
OPENEDX
_FRAGMENTS
)
def
_create_account
(
self
):
"""Create an account, triggering the activation email. """
...
...
themes/edx.org/lms/templates/emails/activation_email.txt
deleted
100644 → 0
View file @
750d4487
<%! from django.utils.translation import ugettext as _ %>
${_("Thank you for creating an account with {platform_name}!").format(platform_name=settings.PLATFORM_NAME)}
${_("There's just one more step before you can enroll in a course: "
"You need to activate your {platform_name} account. To activate "
"your account, click the following link. If that doesn't work, "
"copy and paste the link into your browser's address bar.").format(
platform_name=settings.PLATFORM_NAME
)}
% if is_secure:
https://${ site }/activate/${ key }
% else:
http://${ site }/activate/${ key }
% endif
${_("After you activate your account, you can take "
"any of the hundreds of courses {platform_name} "
"offers. You will receive occasional email "
"messages from {platform_name} about new courses "
"or other information."
).format(platform_name=settings.PLATFORM_NAME)}
${_("If you need help, please use our web form at "
"{contact_us_url}, email {info_email_address}, "
"or write to {info_postal_address}."
).format(
contact_us_url="https://www.edx.org/contact-us",
info_email_address=settings.CONTACT_EMAIL,
info_postal_address=settings.CONTACT_MAILING_ADDRESS
)}
${_("We hope you enjoy learning with {platform_name}!").format(
platform_name=settings.PLATFORM_NAME
)}
${_("The {platform_name} Team").format(platform_name=settings.PLATFORM_NAME)}
${_("This email message was automatically sent by {site_name} because "
"someone attempted to create an account on {platform_name} using "
"this email address."
).format(
site_name=settings.SITE_NAME,
platform_name=settings.PLATFORM_NAME
)}
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