Fix xss-linter directives from edx-ace templates

PROD-508
This commit is contained in:
Adeel Khan
2019-07-30 13:34:44 +05:00
parent cf74aee8ff
commit 05718a63db
7 changed files with 7 additions and 7 deletions

View File

@@ -34,7 +34,7 @@
{% trans "If you didn't request this change, you can disregard this email - we have not yet reset your password." as tmsg %}{{ tmsg | force_escape }}
<br />
</p>
## xss-lint: disable=django-trans-missing-escape
{# xss-lint: disable=django-trans-missing-escape #}
{% trans "Create Password" as course_cta_text %}
{% include "ace_common/edx_ace/common/return_to_course_cta.html" with course_cta_text=course_cta_text course_cta_url=reset_link %}

View File

@@ -15,7 +15,7 @@
{% endfilter %}
<br />
</p>
## xss-lint: disable=django-trans-missing-escape
{# xss-lint: disable=django-trans-missing-escape #}
{% trans "Confirm Email Change" as course_cta_text %}
{% include "ace_common/edx_ace/common/return_to_course_cta.html" with course_cta_text=course_cta_text course_cta_url=confirm_link %}

View File

@@ -33,7 +33,7 @@
{% trans "If you didn't request this change, you can disregard this email - we have not yet reset your password." as tmsg %}{{ tmsg | force_escape }}
<br />
</p>
## xss-lint: disable=django-trans-missing-escape
{# xss-lint: disable=django-trans-missing-escape #}
{% trans "Change my Password" as course_cta_text %}
{# email client support for style sheets is pretty spotty, so we have to inline all of these styles #}

View File

@@ -46,7 +46,7 @@
{% endfilter %}
<br />
</p>
## xss-lint: disable=django-trans-missing-escape
{# xss-lint: disable=django-trans-missing-escape #}
{% trans "Finish Your Registration" as button_cta_text %}
{% include "ace_common/edx_ace/common/return_to_course_cta.html" with course_cta_text=button_cta_text course_cta_url=registration_url %}

View File

@@ -35,7 +35,7 @@
{% endblocktrans %}
{% endfilter %}
</p>
## xss-lint: disable=django-trans-missing-escape
{# xss-lint: disable=django-trans-missing-escape #}
{% trans "Resume your course now" as course_cta_text %}
{% include "ace_common/edx_ace/common/return_to_course_cta.html" with course_cta_text=course_cta_text%}

View File

@@ -42,7 +42,7 @@
{% interpolate_html tmsg start_strong='<strong>'|safe end_strong='</strong>'|safe %}
{% endif %}
</p>
## xss-lint: disable=django-trans-missing-escape
{# xss-lint: disable=django-trans-missing-escape #}
{% trans "Keep learning" as course_cta_text %}
{% include "ace_common/edx_ace/common/return_to_course_cta.html" with course_cta_text=course_cta_text%}

View File

@@ -41,7 +41,7 @@
{% interpolate_html tmsg start_strong='<strong>'|safe end_strong='</strong>'|safe %}
{% endif %}
</p>
## xss-lint: disable=django-trans-missing-escape
{# xss-lint: disable=django-trans-missing-escape #}
{% trans "Start learning now" as course_cta_text %}
{% include "ace_common/edx_ace/common/return_to_course_cta.html" with course_cta_text=course_cta_text%}