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
14 {% subject %}{% blocktrans %}{{ prefix }} New answer to {{ question_title }}{% endblocktrans %}{% endsubject %}
\r
16 {% htmlcontent notifications/base.html %}
\r
17 <p style="{{ p_style }}">
\r
19 {{ answer_author }} has just posted a new answer on {{ app_name }} to the question
\r
20 <a href="{{ app_url }}{{ question_url }}">{{ question_title }}</a>:
\r
25 {{ answer.html|safe }}
\r
28 <p style="{{ p_style }}">{% trans "Don't forget to come over and cast your vote." %}</p>
\r
29 {% endhtmlcontent %}
\r
31 {% textcontent notifications/base_text.html %}
\r
33 {{ answer_author }} has just posted a new answer on {{ app_name }} to the question
\r
34 "{{ question_title }}":
\r
38 {{ answer.body|safe }}
\r
40 {% trans "Don't forget to come over and cast your vote." %}
\r
41 {% endtextcontent %}
\r