Files
edx-platform/lms/templates/email_change_failed.html
Adeel Khan 30d8dfb5dd Fix edx-platform templates for xss.
This is part 2 of a multiple PR to escape
edx-platform templates to prevent xss attack.

PROD-465
2019-07-10 13:31:02 +05:00

25 lines
690 B
HTML

<%page expression_filter="h"/>
<%! from django.utils.translation import ugettext as _
from openedx.core.djangolib.markup import HTML, Text
%>
<%inherit file="main.html" />
<section class="container activation">
<section class="message">
<h1 class="invalid">${_("E-mail change failed")}</h1>
<hr class="horizontal-divider">
% if err_msg is not UNDEFINED:
<p>${err_msg}</p>
% else:
<p>${_("We were unable to send a confirmation email to {email}").format(email=email)}</p>
% endif
<p>${Text(_('Go back to the {link_start}home page{link_end}.')).format(
link_start=HTML('<a href="/">'),
link_end=HTML('</a>'))}</p>
</section>
</section>