1 {% load i18n extra_tags email_tags %}
 
   4     prefix = settings.EMAIL_SUBJECT_PREFIX
 
   5     app_name = settings.APP_SHORT_NAME
 
   6     question_author = question.author.username
 
   7     question_url = settings.APP_URL + question.get_absolute_url()
 
   8     question_title = question.title
 
   9     question_tags = question.tagnames
 
  10     safe_body = html.html2text(question.html)
 
  14     {% subject %}{% blocktrans %}{{ prefix }} New question on {{ app_name }}{% endblocktrans %}{% endsubject %}
 
  16     {% htmlcontent notifications/base.html %}
 
  18             author_link = html.objlink(question.author, style=a_style)
 
  19             question_link = html.objlink(question, style=a_style)
 
  20             tag_links = html.mark_safe(" ".join([html.objlink(t, style=a_style) for t in question.tags.all()]))
 
  23         <p style="{{ p_style }}">
 
  25             {{ author_link }} has just posted a new question on {{ app_name }}, entitled
 
  27              and tagged "<em>{{ tag_links }}</em>". Here's what it says:
 
  32             {{ question.html|safe }}
 
  35         <p style="{{ p_style }}">{% trans "Don't forget to come over and cast your vote." %}</p>        
 
  38 {% textcontent notifications/base_text.html %}
 
  40 {{ question_author }} has just posted a new question on {{ app_name }}, entitled
 
  41 "{{ question_title }}" and tagged {{ question_tags }}:
 
  45 {% trans "Don't forget to come over and cast your vote." %}