]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/notifications/newanswer.html
Converts all instant notifications to the new style emails.
[osqa.git] / forum / skins / default / templates / notifications / newanswer.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     answer_author = answer.author.username\r
8     question = answer.question\r
9     question_url = question.get_absolute_url()\r
10     question_title = question.title\r
11 {% enddeclare %}\r
12 \r
13 {% email %}\r
14     {% subject %}{% blocktrans %}{{ prefix }} New answer to {{ question_title }}{% endblocktrans %}{% endsubject %}\r
15 \r
16     {% htmlcontent notifications/base.html %}\r
17         <p style="{{ p_style }}">\r
18             {% blocktrans %}\r
19             {{ answer_author }} has just posted a new answer on {{ app_name }} to the question\r
20             <a href="{{ app_url }}{{ question_url }}">{{ question_title }}</a>:\r
21             {% endblocktrans %}\r
22         </p>\r
23 \r
24         <blockquote>\r
25         {{ answer.html|safe }}\r
26         </blockquote>\r
27 \r
28         <p style="{{ p_style }}">{% trans "Don't forget to come over and cast your vote." %}</p>\r
29     {% endhtmlcontent %}\r
30 \r
31     {% textcontent notifications/base_text.html %}\r
32         {% blocktrans %}\r
33         {{ answer_author }} has just posted a new answer on {{ app_name }} to the question\r
34             "{{ question_title }}":\r
35         {% endblocktrans %}\r
36 \r
37 \r
38         {{ answer.body|safe }}\r
39 \r
40         {% trans "Don't forget to come over and cast your vote." %} \r
41     {% endtextcontent %}\r
42 \r
43 {% endemail %}\r
44 \r