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 = html.mark_safe(question.title)
9 accepted_by = answer.nstate.accepted.by.username
10 accepted_by_link = html.objlink(answer.nstate.accepted.by, style=settings.EMAIL_ANCHOR_STYLE)
11 answer_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 }} An answer to {{ question_title }} has been accepted{% endblocktrans %}{% endsubject %}
18 {% htmlcontent notifications/base.html %}
19 <p style="{{ p_style }}">
21 {{ accepted_by_link }} has just accepted {{ answer_author_link }}'s answer on his question
27 {% textcontent notifications/base_text.html %}
29 {{ accepted_by }} has just accepted {{ answer_author }}'s answer on his question
30 "{{ question_title }}".