Commit 48e2299e by Daniel Friedman

Make CMS activation_invalid template safe by default

parent 88aa4a90
<%! from django.utils.translation import ugettext as _ %> <%!
from openedx.core.djangolib.markup import HTML, Text
from django.utils.translation import ugettext as _
%>
<%page expression_filter="h"/>
<%inherit file="base.html" /> <%inherit file="base.html" />
<%block name="content"> <%block name="content">
<div class="wrapper-mast wrapper sr"> <div class="wrapper-mast wrapper sr">
<header class="mast"> <header class="mast">
<h1 class="page-header">${_("{studio_name} Account Activation").format(studio_name=settings.STUDIO_SHORT_NAME)}</h1> <h1 class="page-header">
${_("{studio_name} Account Activation").format(
studio_name=Text(settings.STUDIO_SHORT_NAME)
)}
</h1>
</header> </header>
</div> </div>
...@@ -18,10 +26,14 @@ ...@@ -18,10 +26,14 @@
<h1 class="title">${_("Your account activation is invalid")}</h1> <h1 class="title">${_("Your account activation is invalid")}</h1>
<div class="copy"> <div class="copy">
<p>${_("We're sorry. Something went wrong with your activation. Check to make sure the URL you went to was correct, as e-mail programs will sometimes split it into two lines.")}</p> <p>${_("We're sorry. Something went wrong with your activation. Check to make sure the URL you went to was correct, as e-mail programs will sometimes split it into two lines.")}</p>
<p>${_("If you still have issues, contact {platform_name} Support. In the meantime, you can also return to {link_start}the {studio_name} homepage.{link_end}").format( <p>
platform_name=settings.PLATFORM_NAME, studio_name=settings.STUDIO_NAME, ${_("If you still have issues, contact {platform_name} Support. In the meantime, you can also return to {link_start}the {studio_name} homepage.{link_end}").format(
link_start='<a href="/">', link_end="</a>" platform_name=Text(settings.PLATFORM_NAME),
)}</p> studio_name=Text(settings.STUDIO_NAME),
link_start=HTML('<a href="/">'),
link_end=HTML('</a>')
)}
</p>
</div> </div>
</div> </div>
</div> </div>
......
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