Skip to content

Commit

Permalink
Merge pull request openedx#132 from appsembler/appsembler/ficus/featu…
Browse files Browse the repository at this point in the history
…re/fix-activation-email-for-sites

Use site_configuration helper to get url base for activation email
  • Loading branch information
bryanlandia authored Jul 5, 2017
2 parents 5b4ae0e + a3410f5 commit c12764b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lms/templates/emails/activation_email.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<%! from django.utils.translation import ugettext as _ %>
<%! from openedx.core.djangoapps.site_configuration import helpers as configuration_helpers %>

${_("Thank you for creating an account with {platform_name}!").format(
platform_name=configuration_helpers.get_value('PLATFORM_NAME', settings.PLATFORM_NAME)
)}
Expand All @@ -11,10 +12,11 @@ ${_("There's just one more step before you can enroll in a course: "
platform_name=configuration_helpers.get_value('PLATFORM_NAME', settings.PLATFORM_NAME)
)}

<% base_url=configuration_helpers.get_value('SITE_NAME', settings.SITE_NAME) %>
% if is_secure:
https://${ site }/activate/${ key }
https://${ base_url }/activate/${ key }
% else:
http://${ site }/activate/${ key }
http://${ base_url }/activate/${ key }
% endif
${_("If you didn't create an account, you don't need to do anything; you "
"won't receive any more email from us. If you need assistance, please "
Expand Down

0 comments on commit c12764b

Please sign in to comment.