forked from openedx/edx-platform
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add signal to send course completion email to user
- Loading branch information
Muhammad Faraz Maqsood
authored and
Muhammad Faraz Maqsood
committed
Feb 28, 2024
1 parent
59b7c4d
commit 8d7173c
Showing
7 changed files
with
122 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
...urse_progress/templates/course_progress/edx_ace/usercoursecompletionemail/email/body.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<!-- {% extends 'ace_common/edx_ace/common/base_body.html' %} --> | ||
|
||
{% load i18n %} | ||
{% load static %} | ||
{% block content %} | ||
<p style="color: rgba(0,0,0,.75);"> | ||
{% autoescape off %} | ||
{# xss-lint: disable=django-blocktrans-missing-escape-filter #} | ||
{% blocktrans %}Great job!{% endblocktrans %} | ||
{% endautoescape %} | ||
<br /> | ||
</p> | ||
<p style="color: rgba(0,0,0,.75);"> | ||
{% autoescape off %} | ||
{# xss-lint: disable=django-blocktrans-missing-escape-filter #} | ||
{% blocktrans %}{{full_name}}{% endblocktrans %} | ||
{% endautoescape %} | ||
<br /> | ||
</p> | ||
<p style="color: rgba(0,0,0,.75);"> | ||
{% autoescape off %} | ||
{# xss-lint: disable=django-blocktrans-missing-escape-filter #} | ||
{% blocktrans %}You’ve completed "{{ course_name }}". {% endblocktrans %} | ||
{% endautoescape %} | ||
<br /> | ||
</p> | ||
<p style="color: rgba(0,0,0,.75);"> | ||
{% autoescape off %} | ||
{# xss-lint: disable=django-blocktrans-missing-escape-filter #} | ||
{% blocktrans %}Your certificate/badge has been issued and is accessible via the following {% endblocktrans %}<a href="{{ course_progress_url }}">{% blocktrans %}URL{% endblocktrans %}</a>. | ||
{% endautoescape %} | ||
<br /> | ||
</p> | ||
{% endblock %} |
6 changes: 6 additions & 0 deletions
6
...ourse_progress/templates/course_progress/edx_ace/usercoursecompletionemail/email/body.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{% load i18n %}{% autoescape off %} | ||
{% blocktrans %}Great job!{% 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 %}<a href="{{ course_progress_url }}">{% blocktrans %}URL{% endblocktrans %}</a>. | ||
{% endautoescape %} |
1 change: 1 addition & 0 deletions
1
..._progress/templates/course_progress/edx_ace/usercoursecompletionemail/email/from_name.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{{ platform_name }} |
1 change: 1 addition & 0 deletions
1
...urse_progress/templates/course_progress/edx_ace/usercoursecompletionemail/email/head.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<!-- {% extends 'ace_common/edx_ace/common/base_head.html' %} --> |
4 changes: 4 additions & 0 deletions
4
...se_progress/templates/course_progress/edx_ace/usercoursecompletionemail/email/subject.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{% load i18n %} | ||
{% autoescape off %} | ||
{% blocktrans %}{{ platform_name }} - {{ course_name }} | Course Completion 🎉{% endblocktrans %} | ||
{% endautoescape %} |