1 {% load i18n extra_tags email_tags %}
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))
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." %}