Commit 821db8aa by Sofiya Semenova

ed-1590 Templates for email forum notifications

parent d6970826
...@@ -18,7 +18,6 @@ from edx_ace.utils import date ...@@ -18,7 +18,6 @@ from edx_ace.utils import date
from edx_ace.message import MessageType from edx_ace.message import MessageType
from edx_ace.recipient import Recipient from edx_ace.recipient import Recipient
from opaque_keys.edx.keys import CourseKey from opaque_keys.edx.keys import CourseKey
from openedx.core.djangoapps.site_configuration.helpers import get_value
from lms.djangoapps.django_comment_client.utils import permalink from lms.djangoapps.django_comment_client.utils import permalink
import lms.lib.comment_client as cc import lms.lib.comment_client as cc
......
...@@ -2,33 +2,29 @@ ...@@ -2,33 +2,29 @@
{% load i18n %} {% load i18n %}
{% load static %} {% load static %}
{% block preview_text %}
{% blocktrans trimmed %}
{{ comment_username }} replied to your thread.
{% endblocktrans %}
{% endblock %}
{% block content %} {% block content %}
<table width="100%" align="left" border="0" cellpadding="0" cellspacing="0" role="presentation"> <table width="100%" align="left" border="0" cellpadding="0" cellspacing="0" role="presentation">
<tr> <tr>
<td> <td>
{% blocktrans trimmed %} <p>
<p> {% blocktrans trimmed %}
Hi {{ thread_username }}, {{ comment_username }} replied to your <b>{{ thread_title }}</b> post
</p> {% endblocktrans %}
</p>
<p> <div style="border: 1px solid white;
{{ comment_username }} made the following reply to {{ thread_title }} at {{ comment_created_at }}. padding: 15px 15px 15px 20px;
</p> box-shadow: 0 0px 2px rgba(0, 0, 0, 0.55);
margin: 30px 70px 40px 0px;">
{{ comment_body }}
</div>
<p> {% trans "View discussion" as course_cta_text %}
{{ comment_body }}
</p>
{% endblocktrans %}
{% trans "View the discussion" as course_cta_text %}
{% include "schedules/edx_ace/common/return_to_course_cta.html" with course_cta_text=course_cta_text course_cta_url=post_link%} {% include "schedules/edx_ace/common/return_to_course_cta.html" with course_cta_text=course_cta_text course_cta_url=post_link%}
{% block google_analytics_pixel %}
<img src="{{ ga_tracking_pixel_url }}" alt="" role="presentation" aria-hidden="true" style="display: block;"/>
{% endblock %}
</td> </td>
</tr> </tr>
</table> </table>
......
{% load i18n %} {% load i18n %}
{% block content %}
{% blocktrans trimmed %} {% blocktrans trimmed %}
This is the reply to your thread: {{ comment_username }} replied to your <b>{{ thread_title }}</b> post
{% endblocktrans %} {% endblocktrans %}
{{ comment_body }}
<a href="{{ post_link }}"> {% trans "View discussion" %} </a>
{% endblock %}
{% block google_analytics_pixel %}
<img src="{{ ga_tracking_pixel_url }}" alt="" role="presentation" aria-hidden="true" style="display: block;"/>
{% endblock %}
{% load i18n %} {% load i18n %}
{% blocktrans %} {% blocktrans trimmed %}
Someone replied to your thread on {{ platform_name }} Response to your {{ thread_title }} post
{% endblocktrans %} {% endblocktrans %}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment