{% load i18n extra_tags email_tags %} {% declare %} prefix = settings.EMAIL_SUBJECT_PREFIX app_name = settings.APP_SHORT_NAME answer_author = answer.author.username question = answer.question question_title = html.mark_safe(question.title) accepted_by = answer.nstate.accepted.by.username {% enddeclare %} {% email %} {% subject %}{% blocktrans %}{{ prefix }} New answer to {{ question_title }}{% endblocktrans %}{% endsubject %} {% htmlcontent notifications/base.html %} {% declare %} accepted_by_link = html.objlink(answer.nstate.accepted.by, style=a_style) answer_author_link = html.objlink(answer.author, style=a_style) question_link = html.objlink(question, style=a_style) {% enddeclare %}

{% blocktrans %} {{ accepted_by_link }} has just accepted {{ answer_author_link }}'s answer on his question {{ question_link }}. {% endblocktrans %}

{% endhtmlcontent %} {% textcontent notifications/base_text.html %} {% blocktrans %} {{ accepted_by }} has just accepted {{ answer_author }}'s answer on his question "{{ question_title }}". {% endblocktrans %} {% endtextcontent %} {% endemail %}