]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/notifications/newanswer.html
Solves several email encoding issues.
[osqa.git] / forum / skins / default / templates / notifications / newanswer.html
1 {% load i18n extra_tags email_tags %}
2
3 {% declare %}
4     prefix = settings.EMAIL_SUBJECT_PREFIX
5     app_name = settings.APP_SHORT_NAME
6     answer_author = answer.author.username
7     question = answer.question
8     question_title = html.mark_safe(question.title)
9     safe_body = html.html2text(answer.html)
10 {% enddeclare %}
11
12 {% email %}
13     {% subject %}{% blocktrans %}{{ prefix }} New answer to {{ question_title }}{% endblocktrans %}{% endsubject %}
14
15     {% htmlcontent notifications/base.html %}
16         {% declare %}
17             author_link = html.objlink(answer.author, style=a_style)
18             question_link = html.objlink(question, style=a_style)
19         {% enddeclare %}
20         <p style="{{ p_style }}">
21             {% blocktrans %}
22             {{ author_link }} has just posted a new answer on {{ app_name }} to the question
23             {{ question_link }}:
24             {% endblocktrans %}
25         </p>
26
27         <blockquote>
28         {{ answer.html|safe }}
29         </blockquote>
30
31         <p style="{{ p_style }}">{% trans "Don't forget to come over and cast your vote." %}</p>
32     {% endhtmlcontent %}
33
34 {% textcontent notifications/base_text.html %}
35 {% blocktrans %}
36 {{ answer_author }} has just posted a new answer on {{ app_name }} to the question
37 "{{ question_title }}":
38 {% endblocktrans %}
39 {{ safe_body }}
40
41 {% trans "Don't forget to come over and cast your vote." %}
42 {% endtextcontent %}
43
44 {% endemail %}
45