]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/notifications/newquestion.html
Converts all instant notifications to the new style emails.
[osqa.git] / forum / skins / default / templates / notifications / newquestion.html
1 {% load i18n extra_tags email_tags %}\r
2 \r
3 {% declare %}\r
4     prefix = settings.EMAIL_SUBJECT_PREFIX\r
5     app_name = settings.APP_SHORT_NAME\r
6     question_author = question.author.username\r
7     app_url = settings.APP_URL\r
8     question_url = question.get_absolute_url()\r
9     question_title = question.title\r
10     question_tags = question.tagnames\r
11 {% enddeclare %}\r
12 \r
13 {% email %}\r
14     {% subject %}{% blocktrans %}{{ prefix }} New question on {{ app_name }}{% endblocktrans %}{% endsubject %}\r
15 \r
16     {% htmlcontent notifications/base.html %}\r
17         <p style="{{ p_style }}">\r
18             {% blocktrans %}\r
19             {{ question_author }} has just posted a new question on {{ app_name }}, with title\r
20             <a style="{{ a_style }}" href="{{ app_url }}{{ question_url }}">{{ question_title }}</a> and tagged <em>{{ question_tags }}</em>:\r
21             {% endblocktrans %}\r
22         </p>\r
23 \r
24         <blockquote>\r
25             {{ question.html|safe }}\r
26         </blockquote>\r
27 \r
28         <p style="{{ p_style }}">{% trans "Don't forget to come over and cast your vote." %}</p>        \r
29     {% endhtmlcontent %}\r
30 \r
31 {% textcontent notifications/base_text.html %}\r
32     {% blocktrans %}\r
33         {{ question_author }} has just posted a new question on {{ app_name }}, with title\r
34         "{{ question_title }}" and tagged {{ question_tags }}:\r
35     {% endblocktrans %}\r
36 \r
37     {{ question.body|safe }}\r
38 \r
39     {% trans "Don't forget to come over and cast your vote." %}\r
40 {% endtextcontent %}\r
41 \r
42 {% endemail %}\r
43 \r