]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/notifications/answeraccepted.html
Converts all instant notifications to the new style emails.
[osqa.git] / forum / skins / default / templates / notifications / answeraccepted.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     app_url = settings.APP_URL\r
7     answer_author = answer.author.username\r
8     question = answer.question\r
9     question_url = question.get_absolute_url()\r
10     question_title = question.title\r
11     accepted_by = answer.nstate.accepted.by.username\r
12 {% enddeclare %}\r
13 \r
14 {% email %}\r
15     {% subject %}{% blocktrans %}{{ prefix }} New answer to {{ question_title }}{% endblocktrans %}{% endsubject %}\r
16 \r
17     {% htmlcontent notifications/base.html %}\r
18         <p style="{{ p_style }}">\r
19             {% blocktrans %}\r
20             {{ accepted_by }} has just accepted {{ answer_author }}'s answer on his question\r
21             <a href="{{ app_url }}{{ question_url }}">{{ question_title }}</a>.\r
22             {% endblocktrans %}\r
23         </p>\r
24     {% endhtmlcontent %}\r
25 \r
26     {% textcontent notifications/base_text.html %}\r
27         {% blocktrans %}\r
28         {{ accepted_by }} has just accepted {{ answer_author }}'s answer on his question\r
29             "{{ question_title }}".\r
30         {% endblocktrans %}\r
31     {% endtextcontent %}\r
32 \r
33 {% endemail %}\r