Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,21 @@
<p>
{% filter force_escape %}
{% blocktrans trimmed %}
Dear {{ recipient_name }},
Hi Course Team,
{% endblocktrans %}
{% endfilter %}
</p>

<p>
{% filter force_escape %}
{% blocktrans trimmed %}
The About page for the {{ course_run_number }} course run of {{ course_name }} has been published. No further action is necessary.
The About Page for the {{ course_run_number }} course run of {{ course_name }} has been submitted for publishing. The new session will appear on the edX website following the next couple of deployments—typically within 24 to 48 business hours.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

edX website should be renamed to something generic since this code is still part of Open edX, and other Open edX community members are using it.

{% endblocktrans %}
{% endfilter %}
</p>

<p>
{% blocktrans trimmed asvar tmsg %}
{link_start}{preview_url}{link_middle}View this About page.{link_end}
{% endblocktrans %}
{% interpolate_html tmsg link_start='<a href="'|safe link_middle='">'|safe link_end='</a>'|safe preview_url=preview_url|safe %}
</p>

<p>
Note: This email address is unable to receive replies. For questions or comments, please contact your Project Coordinator(s):
Note: This is a no-reply email. For any questions or comments, please contact your Project Coordinator at
{% for contact_us_email in contact_us_emails %}
{% blocktrans trimmed asvar tmsg %}
{link_start}{contact_us_email}{link_middle}{contact_us_email}{link_end}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
{% load i18n %}

{% blocktrans trimmed %}
Dear {{ recipient_name }},
Hi Course Team,
{% endblocktrans %}

{% blocktrans trimmed %}
The About page for the {{ course_run_number }} course run of {{ course_name }} has been published. No further action is necessary.
The About page for the {{ course_run_number }} course run of {{ course_name }} has been submitted for publishing. The new session will appear on the edX website following the next couple of deployments—typically within 24 to 48 business hours.
{% endblocktrans %}

{% blocktrans trimmed %}
View this About page. {{ preview_url }}
{% endblocktrans %}

{% blocktrans trimmed %}
Note: This email address is unable to receive replies. For questions or comments, please contact your Project Coordinator(s):
Note: This is a no-reply email. For any questions or comments, please contact your Project Coordinator at
{% endblocktrans %}{% for contact_us_email in contact_us_emails %}{% if forloop.last %}{{ contact_us_email }}{% else %}{{ contact_us_email }},{% endif %}{% endfor %}
4 changes: 2 additions & 2 deletions course_discovery/apps/course_metadata/tests/test_emails.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,9 +246,9 @@ def test_send_email_for_go_live(self):
"""
kwargs = {
'both_regexes': [
'The About page for the %s course run of %s has been published.' %
'The About page for the %s course run of %s has been submitted for publishing.' %
(self.run_num, self.course_run.title),
'No further action is necessary.',
'The new session will appear on the edX website following the next couple of deployments—typically within 24 to 48 business hours.',
],
'html_regexes': [
'<a href="%s">View this About page.</a>' % self.course_run.marketing_url,
Expand Down
Loading