fix: address UX feedback on reported content email template

This commit is contained in:
SaadYousaf
2022-05-24 16:39:53 +05:00
committed by Saad Yousaf
parent 8528fc07f6
commit 2684189127
3 changed files with 9 additions and 8 deletions

View File

@@ -109,7 +109,7 @@ def create_message_context_for_reported_content(user, post, site, sender):
'thread_id': post.thread.id if sender == 'flag_abuse_for_comment' else post.id,
'title': post.thread.title if sender == 'flag_abuse_for_comment' else post.title,
'content_type': post.type,
'comment_body': post.body,
'content_body': post.body,
'thread_created_at': post.created_at,
'thread_commentable_id': post.commentable_id,
'site_id': site.id,

View File

@@ -10,16 +10,16 @@
<h2>
{% filter force_escape %}
{% blocktrans trimmed asvar replied_to_text %}
{{ course_name }} {{ course_id }} Reported content awaits review
{{ course_name }}: Reported content awaits review
{% endblocktrans %}
{% endfilter %}
{% interpolate_html replied_to_text start_tag='<b>'|safe end_tag='</b>'|safe %}
</h2>
<h3> <b> You are receiving this email because the following {{ content_type }} was reported for review </b> </h3>
<h3> <b> Title </b> </h3>
<br />
{{ comment_body }}
<h3> <b> {{ title }} </b> </h3>
{{ content_body }}
{% filter force_escape %}
{% blocktrans asvar course_cta_text %}Go to Discussion{% endblocktrans %}

View File

@@ -2,7 +2,7 @@
{% block content %}
{% blocktrans trimmed %}
{{ course_name }} {{ course_id }} Reported content awaits review
{{ course_name }}: Reported content awaits review
{% endblocktrans %}
@@ -10,8 +10,9 @@
padding: 1px 1px 1px 15px;
margin: 20px 20px 30px 30px;
color: rgba(0,0,0,.75);">
<b> You are receiving this email because the following {{ content_type }} was reported for review </b>
{{ comment_body }}
<h3> <b> You are receiving this email because the following {{ content_type }} was reported for review </b> </h3>
<h3> <b> {{ title }} </b> </h3>
{{ content_body }}
</div>
<a href="{{ post_link }}"> {% trans "Go to Discussion" %} </a>