]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/notifications/newanswer.html
Remove footer link to squatted domain
[osqa.git] / forum / skins / default / templates / notifications / newanswer.html
1 {% load i18n extra_tags email_tags %}
2
3 {% declare %}
4     prefix = html.mark_safe(smart_str(settings.EMAIL_SUBJECT_PREFIX))
5     app_name = smart_str(settings.APP_SHORT_NAME)
6     safe_app_name = html.mark_safe(smart_str(settings.APP_SHORT_NAME))
7     answer_author = html.mark_safe(smart_str(answer.author.username))
8     question = answer.question
9     question_title = html.mark_safe(smart_str(question.title))
10     safe_body = html.html2text(smart_str(answer.html))
11     author_link = html.objlink(answer.author, style=settings.EMAIL_ANCHOR_STYLE)
12     question_link = 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