1 {% load i18n extra_tags email_tags %}
 
   4     prefix = html.mark_safe(settings.EMAIL_SUBJECT_PREFIX)
 
   6     question = post.question and post.question or post
 
   7     post_author = post.author.username
 
   8     safe_post_author = html.mark_safe(post.author.username)
 
   9     comment_author = html.mark_safe(comment.author)
 
  10     question_title = html.mark_safe(question.title)
 
  11     safe_body = html.html2text(comment.comment)
 
  12     author_link = html.objlink(comment.author, style=settings.EMAIL_ANCHOR_STYLE)
 
  13     question_link = html.objlink(question, style=settings.EMAIL_ANCHOR_STYLE)
 
  17     {% subject %}{% blocktrans %}{{ prefix }} New comment on: {{ question_title }}{% endblocktrans %}{% endsubject %}
 
  19     {% htmlcontent notifications/base.html %}
 
  20         <p style="{{ p_style }}">
 
  21             {% blocktrans %}{{ author_link }} has just posted a comment on {% endblocktrans %}
 
  22             {% ifnotequal post question %}
 
  23                 {% blocktrans %}the answer posted by {{ post_author }} to {% endblocktrans %}
 
  25             {% blocktrans %}the question {{ question_link }}{% endblocktrans %}
 
  32         <p style="{{ p_style }}">{% trans "Don't forget to come over and cast your vote." %}</p>
 
  35 {% textcontent notifications/base_text.html %}
 
  36 {% blocktrans %}{{ comment_author }} has just posted a comment on {% endblocktrans %}
 
  37 {% ifnotequal post question %}
 
  38 {% blocktrans %}the answer posted by {{ safe_post_author }} to {% endblocktrans %}
 
  40 {% blocktrans %}the question "{{ question_title }}"{% endblocktrans %}
 
  43 {% trans "Don't forget to come over and cast your vote." %}