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