1 {% load i18n extra_tags email_tags %}
4 prefix = html.mark_safe(smart_str(settings.EMAIL_SUBJECT_PREFIX))
5 answer_author = html.mark_safe(smart_str(answer.author.username))
6 question = answer.question
7 question_title = html.mark_safe(smart_str(question.title))
8 accepted_by = html.mark_safe(smart_str(answer.nstate.accepted.by.username))
9 accepted_by_link = html.objlink(answer.nstate.accepted.by, style=settings.EMAIL_ANCHOR_STYLE)
10 answer_author_link = html.objlink(answer.author, style=settings.EMAIL_ANCHOR_STYLE)
11 question_link = html.objlink(question, style=settings.EMAIL_ANCHOR_STYLE)
15 {% subject %}{% blocktrans %}{{ prefix }} An answer to: {{ question_title }} has been accepted{% endblocktrans %}{% endsubject %}
17 {% htmlcontent notifications/base.html %}
18 <p style="{{ p_style }}">
20 {{ accepted_by_link }} has just accepted {{ answer_author_link }}'s answer on his question
26 {% textcontent notifications/base_text.html %}
28 {{ accepted_by }} has just accepted {{ answer_author }}'s answer on his question
29 "{{ question_title }}".