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 = question.title
 
   9     safe_body = html.html2text(answer.html)
 
  13     {% subject %}{% blocktrans %}{{ prefix }} New answer to {{ question_title }}{% endblocktrans %}{% endsubject %}
 
  15     {% htmlcontent notifications/base.html %}
 
  17             author_link = html.objlink(answer.author, style=a_style)
 
  18             question_link = html.objlink(question, style=a_style)
 
  20         <p style="{{ p_style }}">
 
  22             {{ author_link }} has just posted a new answer on {{ app_name }} to the question
 
  28         {{ answer.html|safe }}
 
  31         <p style="{{ p_style }}">{% trans "Don't forget to come over and cast your vote." %}</p>
 
  34 {% textcontent notifications/base_text.html %}
 
  36 {{ answer_author }} has just posted a new answer on {{ app_name }} to the question
 
  37 "{{ question_title }}":
 
  41 {% trans "Don't forget to come over and cast your vote." %}