Commit 2c909486 by Nate Hardison

Use settings in LMS emails, not hardcoded values

Instead of hardcoding things like the platform name, use the
corresponding overrideable settings instead. This allows themes to
control emails as well.
parent 940888da
Thank you for signing up for edX! To activate your account, Thank you for signing up for ${settings.PLATFORM_NAME}! To activate
please copy and paste this address into your web browser's your account, please copy and paste this address into your web
address bar: browser's address bar:
% if is_secure: % if is_secure:
https://${ site }/activate/${ key } https://${ site }/activate/${ key }
...@@ -10,4 +10,5 @@ address bar: ...@@ -10,4 +10,5 @@ address bar:
If you didn't request this, you don't need to do anything; you won't If you didn't request this, you don't need to do anything; you won't
receive any more email from us. Please do not reply to this e-mail; if receive any more email from us. Please do not reply to this e-mail; if
you require assistance, check the help section of the edX web site. you require assistance, check the help section of the
${settings.PLATFORM_NAME} web site.
Your account for edX Your account for ${settings.PLATFORM_NAME}
<%! from django.core.urlresolvers import reverse %> <%! from django.core.urlresolvers import reverse %>
This is to confirm that you changed the e-mail associated with edX This is to confirm that you changed the e-mail associated with
from ${old_email} to ${new_email}. If you did not make this request, ${settings.PLATFORM_NAME} from ${old_email} to ${new_email}. If you
please contact us immediately. Contact information is listed at: did not make this request, please contact us immediately. Contact
information is listed at:
% if is_secure: % if is_secure:
https://${ site }${reverse('contact')} https://${ site }${reverse('contact')}
......
We received a request to change the e-mail associated with your edX We received a request to change the e-mail associated with your
account from ${old_email} to ${new_email}. If this is correct, please ${settings.PLATFORM_NAME} account from ${old_email} to ${new_email}.
confirm your new e-mail address by visiting: If this is correct, please confirm your new e-mail address by
visiting:
% if is_secure: % if is_secure:
https://${ site }/email_confirm/${ key } https://${ site }/email_confirm/${ key }
...@@ -10,4 +11,5 @@ confirm your new e-mail address by visiting: ...@@ -10,4 +11,5 @@ confirm your new e-mail address by visiting:
If you didn't request this, you don't need to do anything; you won't If you didn't request this, you don't need to do anything; you won't
receive any more email from us. Please do not reply to this e-mail; if receive any more email from us. Please do not reply to this e-mail; if
you require assistance, check the help section of the edX web site. you require assistance, check the help section of the
${settings.PLATFORM_NAME} web site.
Request to change edX account e-mail Request to change ${settings.PLATFORM_NAME} account e-mail
edX has launched! To log in, visit: ${settings.PLATFORM_NAME} has launched! To log in, visit:
% if is_secure: % if is_secure:
https://edx.org https://${settings.SITE_NAME}
% else: % else:
http://edx.org http://${settings.SITE_NAME}
% endif % endif
A login button will be at the top right-hand corner of the window. A login button will be at the top right-hand corner of the window.
...@@ -14,7 +14,7 @@ place to reset it. ...@@ -14,7 +14,7 @@ place to reset it.
Thanks for joining us for the ride! Thanks for joining us for the ride!
The edX team The ${settings.PLATFORM_NAME} team
(Please note that this e-mail address does not receive e-mails -- (Please note that this e-mail address does not receive e-mails --
if you need assistance, please use the help section of the web if you need assistance, please use the help section of the web
......
Welcome to edX! Welcome to ${settings.PLATFORM_NAME}!
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