From 8c7c95ee913b7c5ad8ee1aa34a1d5dd8b348efc8 Mon Sep 17 00:00:00 2001 From: Muhammad Faraz Maqsood Date: Thu, 29 Feb 2024 15:07:06 +0500 Subject: [PATCH] finalize email templates --- .../usercoursecompletionemail/email/body.html | 21 ++++++++++++++++--- .../usercoursecompletionemail/email/body.txt | 8 ++++--- .../usercourseprogressemail/email/body.html | 8 ++++++- .../usercourseprogressemail/email/body.txt | 6 ++++++ 4 files changed, 36 insertions(+), 7 deletions(-) diff --git a/openedx/features/sdaia_features/course_progress/templates/course_progress/edx_ace/usercoursecompletionemail/email/body.html b/openedx/features/sdaia_features/course_progress/templates/course_progress/edx_ace/usercoursecompletionemail/email/body.html index fcbf39107c83..1e8b4cad2ecf 100644 --- a/openedx/features/sdaia_features/course_progress/templates/course_progress/edx_ace/usercoursecompletionemail/email/body.html +++ b/openedx/features/sdaia_features/course_progress/templates/course_progress/edx_ace/usercoursecompletionemail/email/body.html @@ -6,7 +6,7 @@

{% autoescape off %} {# xss-lint: disable=django-blocktrans-missing-escape-filter #} - {% blocktrans %}Great job!{% endblocktrans %} + {% blocktrans %}Congratulations!{% endblocktrans %} {% endautoescape %}

@@ -20,14 +20,29 @@

{% autoescape off %} {# xss-lint: disable=django-blocktrans-missing-escape-filter #} - {% blocktrans %}You’ve completed "{{ course_name }}". {% endblocktrans %} + {% blocktrans %}You have successfully completed this course! {% endblocktrans %} {% endautoescape %}

{% autoescape off %} {# xss-lint: disable=django-blocktrans-missing-escape-filter #} - {% blocktrans %}Your certificate/badge has been issued and is accessible via the following {% endblocktrans %}{% blocktrans %}URL{% endblocktrans %}. + {% blocktrans %}Please click {% endblocktrans %}{% blocktrans %}here{% endblocktrans %}{% blocktrans %} to view your accreditation. {% endblocktrans %} + {% endautoescape %} +
+
+

+

+ {% autoescape off %} + {# xss-lint: disable=django-blocktrans-missing-escape-filter #} + {% blocktrans %}Thank you. {% endblocktrans %} + {% endautoescape %} +
+

+

+ {% autoescape off %} + {# xss-lint: disable=django-blocktrans-missing-escape-filter #} + {% blocktrans %}SDAIA Academy{% endblocktrans %} {% endautoescape %}

diff --git a/openedx/features/sdaia_features/course_progress/templates/course_progress/edx_ace/usercoursecompletionemail/email/body.txt b/openedx/features/sdaia_features/course_progress/templates/course_progress/edx_ace/usercoursecompletionemail/email/body.txt index 5d2bb3de8c6b..7a4c71720a03 100644 --- a/openedx/features/sdaia_features/course_progress/templates/course_progress/edx_ace/usercoursecompletionemail/email/body.txt +++ b/openedx/features/sdaia_features/course_progress/templates/course_progress/edx_ace/usercoursecompletionemail/email/body.txt @@ -1,6 +1,8 @@ {% load i18n %}{% autoescape off %} -{% blocktrans %}Great job!{% endblocktrans %} +{% blocktrans %}Congratulations!{% endblocktrans %} {% blocktrans %}{{ full_name }}{% endblocktrans %} -{% blocktrans %}You’ve completed "{{ course_name }}".{% endblocktrans %} -{% blocktrans %}Your certificate/badge has been issued and is accessible via the following {% endblocktrans %}{% blocktrans %}URL{% endblocktrans %}. +{% blocktrans %}You have successfully completed this course! {% endblocktrans %} +{% blocktrans %}Please click {% endblocktrans %}{% blocktrans %}here{% endblocktrans %}{% blocktrans %} to view your accreditation. {% endblocktrans %} +{% blocktrans %}Thank you. {% endblocktrans %} +{% blocktrans %}SDAIA Academy{% endblocktrans %} {% endautoescape %} diff --git a/openedx/features/sdaia_features/course_progress/templates/course_progress/edx_ace/usercourseprogressemail/email/body.html b/openedx/features/sdaia_features/course_progress/templates/course_progress/edx_ace/usercourseprogressemail/email/body.html index c75de53f69d5..9843da6147ae 100644 --- a/openedx/features/sdaia_features/course_progress/templates/course_progress/edx_ace/usercourseprogressemail/email/body.html +++ b/openedx/features/sdaia_features/course_progress/templates/course_progress/edx_ace/usercourseprogressemail/email/body.html @@ -6,7 +6,13 @@

{% autoescape off %} {# xss-lint: disable=django-blocktrans-missing-escape-filter #} - {% blocktrans %}Great job!{% endblocktrans %} + {% if current_progress >= 25 and current_progress < 50 %} + {% blocktrans %}Well done!{% endblocktrans %} + {% elif current_progress >= 50 and current_progress < 75 %} + {% blocktrans %}Great job!{% endblocktrans %} + {% else %} + {% blocktrans %}Awesome!{% endblocktrans %} + {% endif %} {% endautoescape %}

diff --git a/openedx/features/sdaia_features/course_progress/templates/course_progress/edx_ace/usercourseprogressemail/email/body.txt b/openedx/features/sdaia_features/course_progress/templates/course_progress/edx_ace/usercourseprogressemail/email/body.txt index e4e8d14eb172..e6c76c55d140 100644 --- a/openedx/features/sdaia_features/course_progress/templates/course_progress/edx_ace/usercourseprogressemail/email/body.txt +++ b/openedx/features/sdaia_features/course_progress/templates/course_progress/edx_ace/usercourseprogressemail/email/body.txt @@ -1,5 +1,11 @@ {% load i18n %}{% autoescape off %} +{% if current_progress >= 25 and current_progress < 50 %} +{% blocktrans %}Well done!{% endblocktrans %} +{% elif current_progress >= 50 and current_progress < 75 %} {% blocktrans %}Great job!{% endblocktrans %} +{% else %} +{% blocktrans %}Awesome!{% endblocktrans %} +{% endif %} {% blocktrans %}{{ full_name }}{% endblocktrans %} {% blocktrans %}You’ve completed {{ current_progress }}% of "{{ course_name }}".{% endblocktrans %} {% blocktrans %}Keep it up! Continue your learning journey {% endblocktrans %}{% blocktrans %}here{% endblocktrans %}.