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 post = comment.parent
\r
8 question = post.question and post.question or post
\r
9 post_author = post.author.username
\r
10 comment_author = comment.author
\r
11 question_url = question.get_absolute_url()
\r
12 question_title = question.title
\r
16 {% subject %}{% blocktrans %}{{ prefix }} New comment on {{ question_title }}{% endblocktrans %}{% endsubject %}
\r
18 {% htmlcontent notifications/base.html %}
\r
19 <p style="{{ p_style }}">
\r
20 {% blocktrans %}{{ comment_author }} has just posted a comment on {% endblocktrans %}
\r
21 {% ifnotequal post question %}
\r
22 {% blocktrans %}the answer posted by {{ post_author }} to {% endblocktrans %}
\r
24 {% blocktrans %}the question <a href="{{ app_url }}{{ question_url }}">{{ question_title }}</a>{% endblocktrans %}
\r
28 {{ comment.comment }}
\r
31 <p style="{{ p_style }}">{% trans "Don't forget to come over and cast your vote." %}</p>
\r
32 {% endhtmlcontent %}
\r
34 {% textcontent notifications/base_text.html %}
\r
35 {% blocktrans %}{{ comment_author }} has just posted a comment on {% endblocktrans %}
\r
36 {% ifnotequal post question %}
\r
37 {% blocktrans %}the answer posted by {{ post_author }} to {% endblocktrans %}
\r
39 {% blocktrans %}the question "{{ question_title }}"{% endblocktrans %}
\r
44 {% trans "Don't forget to come over and cast your vote." %}
\r
45 {% endtextcontent %}
\r