1 {% load i18n extra_tags email_tags %}
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 = question.title
9 accepted_by = answer.nstate.accepted.by.username
13 {% subject %}{% blocktrans %}{{ prefix }} New answer to {{ question_title }}{% endblocktrans %}{% endsubject %}
15 {% htmlcontent notifications/base.html %}
17 accepted_by_link = html.objlink(answer.nstate.accepted.by, style=a_style)
18 answer_author_link = html.objlink(answer.author, style=a_style)
19 question_link = html.objlink(question, style=a_style)
21 <p style="{{ p_style }}">
23 {{ accepted_by_link }} has just accepted {{ answer_author_link }}'s answer on his question
29 {% textcontent notifications/base_text.html %}
31 {{ accepted_by }} has just accepted {{ answer_author }}'s answer on his question
32 "{{ question_title }}".