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 = html.mark_safe(question.title)
 
  12     safe_body = html.html2text(comment.comment)
 
  13     author_link = html.objlink(comment.author, style=settings.EMAIL_ANCHOR_STYLE)
 
  14     question_link = html.objlink(question, style=settings.EMAIL_ANCHOR_STYLE)
 
  18     {% subject %}{% blocktrans %}{{ prefix }} New comment on {{ question_title }}{% endblocktrans %}{% endsubject %}
 
  20     {% htmlcontent notifications/base.html %}
 
  21         <p style="{{ p_style }}">
 
  22             {% blocktrans %}{{ author_link }} has just posted a comment on {% endblocktrans %}
 
  23             {% ifnotequal post question %}
 
  24                 {% blocktrans %}the answer posted by {{ post_author }} to {% endblocktrans %}
 
  26             {% blocktrans %}the question {{ question_link }}{% endblocktrans %}
 
  33         <p style="{{ p_style }}">{% trans "Don't forget to come over and cast your vote." %}</p>
 
  36 {% textcontent notifications/base_text.html %}
 
  37 {% blocktrans %}{{ comment_author }} has just posted a comment on {% endblocktrans %}
 
  38 {% ifnotequal post question %}
 
  39 {% blocktrans %}the answer posted by {{ post_author }} to {% endblocktrans %}
 
  41 {% blocktrans %}the question "{{ question_title }}"{% endblocktrans %}
 
  44 {% trans "Don't forget to come over and cast your vote." %}