1 {% load i18n extra_tags email_tags %}
\r
4 prefix = settings.EMAIL_SUBJECT_PREFIX
\r
5 app_name = settings.APP_SHORT_NAME
\r
6 app_url = settings.APP_URL
\r
7 answer_author = answer.author.username
\r
8 question = answer.question
\r
9 question_url = question.get_absolute_url()
\r
10 question_title = question.title
\r
11 accepted_by = answer.nstate.accepted.by.username
\r
15 {% subject %}{% blocktrans %}{{ prefix }} New answer to {{ question_title }}{% endblocktrans %}{% endsubject %}
\r
17 {% htmlcontent notifications/base.html %}
\r
18 <p style="{{ p_style }}">
\r
20 {{ accepted_by }} has just accepted {{ answer_author }}'s answer on his question
\r
21 <a href="{{ app_url }}{{ question_url }}">{{ question_title }}</a>.
\r
24 {% endhtmlcontent %}
\r
26 {% textcontent notifications/base_text.html %}
\r
28 {{ accepted_by }} has just accepted {{ answer_author }}'s answer on his question
\r
29 "{{ question_title }}".
\r
31 {% endtextcontent %}
\r