]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/notifications/newanswer.html
Adds a couple of settings for email customization.
[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     author_link = html.objlink(answer.author, style=settings.EMAIL_ANCHOR_STYLE)
11     question_link = html.objlink(question, style=settings.EMAIL_ANCHOR_STYLE)
12 {% enddeclare %}
13
14 {% email %}
15     {% subject %}{% blocktrans %}{{ prefix }} New answer to {{ question_title }}{% endblocktrans %}{% endsubject %}
16
17     {% htmlcontent notifications/base.html %}
18         <p style="{{ p_style }}">
19             {% blocktrans %}
20             {{ author_link }} has just posted a new answer on {{ app_name }} to the question
21             {{ question_link }}:
22             {% endblocktrans %}
23         </p>
24
25         <blockquote>
26         {{ answer.html|safe }}
27         </blockquote>
28
29         <p style="{{ p_style }}">{% trans "Don't forget to come over and cast your vote." %}</p>
30     {% endhtmlcontent %}
31
32 {% textcontent notifications/base_text.html %}
33 {% blocktrans %}
34 {{ answer_author }} has just posted a new answer on {{ app_name }} to the question
35 "{{ question_title }}":
36 {% endblocktrans %}
37 {{ safe_body }}
38
39 {% trans "Don't forget to come over and cast your vote." %}
40 {% endtextcontent %}
41
42 {% endemail %}
43