Просмотр исходного кода

Added missing e-mail templates for reports.

Ralfp 12 лет назад
Родитель
Сommit
45689b3828

+ 9 - 0
templates/_email/report_reply_notification.html

@@ -0,0 +1,9 @@
+{% extends "_email/base.html" %}
+
+{% block title %}{% trans %}New reply notification{% endtrans %}{% endblock %}
+
+{% block content %}
+<p {{ style_p|safe }}>{% trans username=user.username, author=author.username, thread=thread.name %}{{ username }}, you are receiving this message because {{ author }} has replied to report "{{ thread }}" that you are watching.{% endtrans %}</p>
+<p {{ style_p|safe }}>{% trans %}To go to this reply follow the link below:{% endtrans %}</p>
+<a href="{{ board_address }}{% url 'report_find' thread=thread.pk, slug=thread.slug, post=post.pk %}" {{ style_link|safe }}>{{ board_address }}{% url 'report_find' thread=thread.pk, slug=thread.slug, post=post.pk %}</a>
+{% endblock %}

+ 10 - 0
templates/_email/report_reply_notification.txt

@@ -0,0 +1,10 @@
+{% extends "_email/base.txt" %}
+
+{% block title %}{% trans %}New reply notification{% endtrans %}{% endblock %}
+
+{% block content %}
+{% trans username=user.username, author=author.username, thread=thread.name %}{{ username }}, you are receiving this message because {{ author }} has replied to report "{{ thread }}" that you are watching.{% endtrans %}
+
+{% trans %}To go to this reply follow the link below:{% endtrans %}
+{{ board_address }}{% url 'report_find' thread=thread.pk, slug=thread.slug, post=post.pk %}
+{% endblock %}