fix: fixed escaped characters in goal reminder email (#36260)
This commit is contained in:
@@ -51,11 +51,13 @@
|
||||
<tr>
|
||||
<p style="color: rgba(0,0,0,.75); font-size: 16px; font-size: 1rem; margin: 0; padding-top: 20px; padding-bottom: 14px">
|
||||
{% filter force_escape %}
|
||||
{% blocktrans count count=days_per_week asvar goal_text %}
|
||||
You set a goal of learning {start_bold}{{days_per_week}} time a week in {{course_name}}{end_bold}. You’re not quite there, but there's still time to reach that goal!
|
||||
{% plural %}
|
||||
You set a goal of learning {start_bold}{{days_per_week}} times a week in {{course_name}}{end_bold}. You're not quite there, but there's still time to reach that goal!
|
||||
{% endblocktrans %}
|
||||
{% autoescape off %}
|
||||
{% blocktrans count count=days_per_week asvar goal_text %}
|
||||
You set a goal of learning {start_bold}{{days_per_week}} time a week in {{course_name}}{end_bold}. You’re not quite there, but there's still time to reach that goal!
|
||||
{% plural %}
|
||||
You set a goal of learning {start_bold}{{days_per_week}} times a week in {{course_name}}{end_bold}. You're not quite there, but there's still time to reach that goal!
|
||||
{% endblocktrans %}
|
||||
{% endautoescape %}
|
||||
{% endfilter %}
|
||||
{% interpolate_html goal_text start_bold='<b>'|safe end_bold='</b>'|safe %}
|
||||
</p>
|
||||
@@ -107,7 +109,7 @@
|
||||
{% filter force_escape %}{% blocktrans %}
|
||||
Adjust my goal
|
||||
{% endblocktrans %}{% endfilter %}
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
|
||||
<center>
|
||||
@@ -134,4 +136,4 @@
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
{% load i18n %}
|
||||
{% trans "You're almost there!" %}
|
||||
{% trans "There's still time to reach your goal" as tmsg %}
|
||||
{% autoescape off %}
|
||||
{% blocktrans %}You set a goal of learning {{days_per_week}} times a week in {{course_name}}. You're not quite there, but there's still time to reach that goal!{% endblocktrans %}
|
||||
{% endautoescape %}
|
||||
{% trans "Jump back in"}
|
||||
{{course_url}}
|
||||
{% blocktrans %}Remember, you can always change your learning goal. The best goal is one that you can stick to. {% endblocktrans %}
|
||||
{% trans "Adjust my goal"}
|
||||
{{course_url}}
|
||||
{% trans "Unsubscribe from goal reminder emails to this course"}
|
||||
{{course_url}}
|
||||
{{course_url}}
|
||||
|
||||
Reference in New Issue
Block a user