1 {% load i18n extra_tags email_tags %}
 
   4     prefix = settings.EMAIL_SUBJECT_PREFIX
 
   5     app_name = settings.APP_SHORT_NAME
 
   6     answer_author = answer.author.username
 
   7     question = answer.question
 
   8     question_title = html.mark_safe(question.title)
 
   9     safe_body = html.html2text(answer.html)
 
  10     author_link = html.objlink(answer.author, style=settings.EMAIL_ANCHOR_STYLE)
 
  11     question_link = html.objlink(question, style=settings.EMAIL_ANCHOR_STYLE)
 
  15     {% subject %}{% blocktrans %}{{ prefix }} New answer to {{ question_title }}{% endblocktrans %}{% endsubject %}
 
  17     {% htmlcontent notifications/base.html %}
 
  18         <p style="{{ p_style }}">
 
  20             {{ author_link }} has just posted a new answer on {{ app_name }} to the question
 
  26         {{ answer.html|safe }}
 
  29         <p style="{{ p_style }}">{% trans "Don't forget to come over and cast your vote." %}</p>
 
  32 {% textcontent notifications/base_text.html %}
 
  34 {{ answer_author }} has just posted a new answer on {{ app_name }} to the question
 
  35 "{{ question_title }}":
 
  39 {% trans "Don't forget to come over and cast your vote." %}