1 {% load i18n extra_tags email_tags %}
4 prefix = settings.EMAIL_SUBJECT_PREFIX
5 app_name = settings.APP_SHORT_NAME
7 question = post.question and post.question or post
8 post_author = post.author.username
9 comment_author = comment.author
10 question_url = question.get_absolute_url()
11 question_title = question.title
12 safe_body = html.html2text(comment.comment)
16 {% subject %}{% blocktrans %}{{ prefix }} New comment on {{ question_title }}{% endblocktrans %}{% endsubject %}
18 {% htmlcontent notifications/base.html %}
20 author_link = html.objlink(comment.author, style=a_style)
21 question_link = html.objlink(question, style=a_style)
23 <p style="{{ p_style }}">
24 {% blocktrans %}{{ author_link }} has just posted a comment on {% endblocktrans %}
25 {% ifnotequal post question %}
26 {% blocktrans %}the answer posted by {{ post_author }} to {% endblocktrans %}
28 {% blocktrans %}the question {{ question_link }}{% endblocktrans %}
35 <p style="{{ p_style }}">{% trans "Don't forget to come over and cast your vote." %}</p>
38 {% textcontent notifications/base_text.html %}
39 {% blocktrans %}{{ comment_author }} has just posted a comment on {% endblocktrans %}
40 {% ifnotequal post question %}
41 {% blocktrans %}the answer posted by {{ post_author }} to {% endblocktrans %}
43 {% blocktrans %}the question "{{ question_title }}"{% endblocktrans %}
46 {% trans "Don't forget to come over and cast your vote." %}