Commit 821db8aa by Sofiya Semenova

ed-1590 Templates for email forum notifications

parent d6970826
......@@ -18,7 +18,6 @@ from edx_ace.utils import date
from edx_ace.message import MessageType
from edx_ace.recipient import Recipient
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
import lms.lib.comment_client as cc
......
......@@ -2,33 +2,29 @@
{% load i18n %}
{% load static %}
{% block preview_text %}
{% blocktrans trimmed %}
{{ comment_username }} replied to your thread.
{% endblocktrans %}
{% endblock %}
{% block content %}
<table width="100%" align="left" border="0" cellpadding="0" cellspacing="0" role="presentation">
<tr>
<td>
{% blocktrans trimmed %}
<p>
Hi {{ thread_username }},
</p>
<p>
{% blocktrans trimmed %}
{{ comment_username }} replied to your <b>{{ thread_title }}</b> post
{% endblocktrans %}
</p>
<p>
{{ comment_username }} made the following reply to {{ thread_title }} at {{ comment_created_at }}.
</p>
<div style="border: 1px solid white;
padding: 15px 15px 15px 20px;
box-shadow: 0 0px 2px rgba(0, 0, 0, 0.55);
margin: 30px 70px 40px 0px;">
{{ comment_body }}
</div>
<p>
{{ comment_body }}
</p>
{% endblocktrans %}
{% trans "View the discussion" as course_cta_text %}
{% trans "View 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%}
{% block google_analytics_pixel %}
<img src="{{ ga_tracking_pixel_url }}" alt="" role="presentation" aria-hidden="true" style="display: block;"/>
{% endblock %}
</td>
</tr>
</table>
......
{% load i18n %}
{% block content %}
{% blocktrans trimmed %}
This is the reply to your thread:
{{ comment_username }} replied to your <b>{{ thread_title }}</b> post
{% 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 %}
{% blocktrans %}
Someone replied to your thread on {{ platform_name }}
{% endblocktrans %}
{% blocktrans trimmed %}
Response to your {{ thread_title }} post
{% 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