]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/notifications/newcomment.html
Converts all instant notifications to the new style emails.
[osqa.git] / forum / skins / default / templates / notifications / newcomment.html
1 {% load i18n extra_tags email_tags %}\r
2 \r
3 {% declare %}\r
4     prefix = settings.EMAIL_SUBJECT_PREFIX\r
5     app_name = settings.APP_SHORT_NAME\r
6     app_url = settings.APP_URL\r
7     post = comment.parent\r
8     question = post.question and post.question or post\r
9     post_author = post.author.username\r
10     comment_author = comment.author\r
11     question_url = question.get_absolute_url()\r
12     question_title = question.title\r
13 {% enddeclare %}\r
14 \r
15 {% email %}\r
16     {% subject %}{% blocktrans %}{{ prefix }} New comment on {{ question_title }}{% endblocktrans %}{% endsubject %}\r
17 \r
18     {% htmlcontent notifications/base.html %}\r
19         <p style="{{ p_style }}">\r
20             {% blocktrans %}{{ comment_author }} has just posted a comment on {% endblocktrans %}\r
21             {% ifnotequal post question %}\r
22                 {% blocktrans %}the answer posted by {{ post_author }} to {% endblocktrans %}\r
23             {% endifnotequal %}\r
24             {% blocktrans %}the question <a href="{{ app_url }}{{ question_url }}">{{ question_title }}</a>{% endblocktrans %}\r
25         </p>\r
26 \r
27         <blockquote>\r
28         {{ comment.comment }}\r
29         </blockquote>\r
30 \r
31         <p style="{{ p_style }}">{% trans "Don't forget to come over and cast your vote." %}</p>\r
32     {% endhtmlcontent %}\r
33 \r
34     {% textcontent notifications/base_text.html %}\r
35         {% blocktrans %}{{ comment_author }} has just posted a comment on {% endblocktrans %}\r
36         {% ifnotequal post question %}\r
37             {% blocktrans %}the answer posted by {{ post_author }} to {% endblocktrans %}\r
38         {% endifnotequal %}\r
39         {% blocktrans %}the question "{{ question_title }}"{% endblocktrans %}\r
40 \r
41 \r
42         {{ comment.body }}\r
43 \r
44         {% trans "Don't forget to come over and cast your vote." %}\r
45     {% endtextcontent %}\r
46 \r
47 {% endemail %}\r