Date: Wed, 23 Mar 2016 11:26:21 -0400
Subject: [PATCH] Escape properly the elements on the dashboard xseries upsell
template
---
.../dashboard/_dashboard_certificate_information.html | 8 +++++---
lms/templates/dashboard/_dashboard_info_language.html | 11 -----------
lms/templates/dashboard/_dashboard_xseries_info.html | 8 +++++---
3 files changed, 10 insertions(+), 17 deletions(-)
delete mode 100644 lms/templates/dashboard/_dashboard_info_language.html
diff --git a/lms/templates/dashboard/_dashboard_certificate_information.html b/lms/templates/dashboard/_dashboard_certificate_information.html
index 13109ea82e..6145d87794 100644
--- a/lms/templates/dashboard/_dashboard_certificate_information.html
+++ b/lms/templates/dashboard/_dashboard_certificate_information.html
@@ -1,7 +1,9 @@
+<%page expression_filter="h"/>
<%page args="cert_status, course_overview, enrollment" />
<%!
from django.utils.translation import ugettext as _
+from openedx.core.djangolib.markup import Text, HTML
from course_modes.models import CourseMode
%>
<%namespace name='static' file='../static_content.html'/>
@@ -41,11 +43,11 @@ else:
${"{0:.0f}%".format(float(course_overview.lowest_passing_grade)*100)}.
% elif cert_status['status'] == 'restricted' and enrollment.mode == 'verified':
- ${_("Your verified {cert_name_long} is being held pending confirmation that the issuance of your {cert_name_short} is in compliance with strict U.S. embargoes on Iran, Cuba, Syria and Sudan. If you think our system has mistakenly identified you as being connected with one of those countries, please let us know by contacting {email}. If you would like a refund on your {cert_name_long}, please contact our billing address {billing_email}").format(email='{email}.'.format(email=settings.CONTACT_EMAIL), billing_email='{email}'.format(email=settings.PAYMENT_SUPPORT_EMAIL), cert_name_short=cert_name_short, cert_name_long=cert_name_long)}
+ ${Text(_("Your verified {cert_name_long} is being held pending confirmation that the issuance of your {cert_name_short} is in compliance with strict U.S. embargoes on Iran, Cuba, Syria and Sudan. If you think our system has mistakenly identified you as being connected with one of those countries, please let us know by contacting {email}. If you would like a refund on your {cert_name_long}, please contact our billing address {billing_email}")).format(email=HTML('{email}.').format(email=settings.CONTACT_EMAIL), billing_email=HTML('{email}').format(email=settings.PAYMENT_SUPPORT_EMAIL), cert_name_short=cert_name_short, cert_name_long=cert_name_long)}
% elif cert_status['status'] == 'restricted':
- ${_("Your {cert_name_long} is being held pending confirmation that the issuance of your {cert_name_short} is in compliance with strict U.S. embargoes on Iran, Cuba, Syria and Sudan. If you think our system has mistakenly identified you as being connected with one of those countries, please let us know by contacting {email}.").format(email='{email}.'.format(email=settings.CONTACT_EMAIL), cert_name_short=cert_name_short, cert_name_long=cert_name_long)}
+ ${Text(_("Your {cert_name_long} is being held pending confirmation that the issuance of your {cert_name_short} is in compliance with strict U.S. embargoes on Iran, Cuba, Syria and Sudan. If you think our system has mistakenly identified you as being connected with one of those countries, please let us know by contacting {email}.")).format(email=HTML('{email}.').format(email=settings.CONTACT_EMAIL), cert_name_short=cert_name_short, cert_name_long=cert_name_long)}
% endif