<%! from django.core.urlresolvers import reverse %>
<%! from django.utils.translation import ugettext as _ %>
<%namespace file="../main.html" import="stanford_theme_enabled" />
## Again, ugly hack that needs to be changed
## TODO: this probably needs better formatting to look nice in an
##       email client (Mako leaves awkward whitespace)
% if stanford_theme_enabled():
  ${_("This is to confirm that you changed the e-mail associated with "
      "{platform_name} from {old_email} to {new_email}. If you "
      "did not make this request, please contact us at").format(platform_name=settings.PLATFORM_NAME, old_email=old_email, new_email=new_email)}

  ${settings.CONTACT_EMAIL}
% else:
  ${_("This is to confirm that you changed the e-mail associated with "
      "{platform_name} from {old_email} to {new_email}. If you "
      "did not make this request, please contact us immediately. Contact "
      "information is listed at:").format(platform_name=settings.PLATFORM_NAME, old_email=old_email, new_email=new_email)}

  % if is_secure:
    https://${ site }${reverse('contact')}
  % else:
    http://${ site }${reverse('contact')}
  % endif
% endif

${_("We keep a log of old e-mails, so if this request was unintentional, we "
    "can investigate.")}

<%! from django.core.urlresolvers import reverse %>
<%! from django.utils.translation import ugettext as _ %>
<%! from course_modes.helpers import get_mktg_url as marketing_url %>
<%namespace file="../main.html" import="stanford_theme_enabled" />

## Again, ugly hack that needs to be changed
## TODO: this probably needs better formatting to look nice in an
##       email client (Mako leaves awkward whitespace)
% if stanford_theme_enabled():
  ${_("This is to confirm that you changed the e-mail associated with "
      "{platform_name} from {old_email} to {new_email}. If you "
      "did not make this request, please contact us at").format(platform_name=settings.PLATFORM_NAME, old_email=old_email, new_email=new_email)}

  ${settings.CONTACT_EMAIL}
% else:
  ${_("This is to confirm that you changed the e-mail associated with "
      "{platform_name} from {old_email} to {new_email}. If you "
      "did not make this request, please contact us immediately. Contact "
      "information is listed at:").format(platform_name=settings.PLATFORM_NAME, old_email=old_email, new_email=new_email)}

  % if settings.FEATURES.get('ENABLE_MKTG_SITE'):
    ${marketing_url('contact-us')}
  % else:
    % if is_secure:
      https://${ site }${reverse('contact')}
    % else:
      http://${ site }${reverse('contact')}
    % endif
  % endif
% endif

${_("We keep a log of old e-mails, so if this request was unintentional, we "
    "can investigate.")}

Fix contact-us page URL in the email change confirmation message
Fix contact-us page URL in the email change confirmation message
