1 {% load i18n extra_tags email_tags %}
4 prefix = html.mark_safe(settings.EMAIL_SUBJECT_PREFIX)
5 app_name = settings.APP_SHORT_NAME
6 safe_app_name = html.mark_safe(settings.APP_SHORT_NAME)
7 answer_author = html.mark_safe(answer.author.username)
8 question = answer.question
9 question_title = html.mark_safe(question.title)
10 safe_body = html.html2text(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)
16 {% subject %}{% blocktrans %}{{ prefix }} New answer to: {{ question_title }}{% endblocktrans %}{% endsubject %}
18 {% htmlcontent notifications/base.html %}
19 <p style="{{ p_style }}">
21 {{ author_link }} has just posted a new answer on {{ app_name }} to the question
27 {{ answer.html|safe }}
30 <p style="{{ p_style }}">{% trans "Don't forget to come over and cast your vote." %}</p>
33 {% textcontent notifications/base_text.html %}
35 {{ answer_author }} has just posted a new answer on {{ safe_app_name }} to the question
36 "{{ question_title }}":
40 {% trans "Don't forget to come over and cast your vote." %}