]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/notifications/answeraccepted.html
76927e3c5d803df5ed37a41b7cb962e3001e0fc4
[osqa.git] / forum / skins / default / templates / notifications / answeraccepted.html
1 {% load i18n extra_tags email_tags %}
2
3 {% declare %}
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     accepted_by = answer.nstate.accepted.by.username
10     accepted_by_link = html.objlink(answer.nstate.accepted.by, style=settings.EMAIL_ANCHOR_STYLE)
11     answer_author_link = html.objlink(answer.author, style=settings.EMAIL_ANCHOR_STYLE)
12     question_link = html.objlink(question, style=settings.EMAIL_ANCHOR_STYLE)
13 {% enddeclare %}
14
15 {% email %}
16     {% subject %}{% blocktrans %}{{ prefix }} An answer to {{ question_title }} has been accepted{% endblocktrans %}{% endsubject %}
17
18     {% htmlcontent notifications/base.html %}
19         <p style="{{ p_style }}">
20             {% blocktrans %}
21             {{ accepted_by_link }} has just accepted {{ answer_author_link }}'s answer on his question
22             {{ question_link }}.
23             {% endblocktrans %}
24         </p>
25     {% endhtmlcontent %}
26
27 {% textcontent notifications/base_text.html %}
28 {% blocktrans %}
29 {{ accepted_by }} has just accepted {{ answer_author }}'s answer on his question
30 "{{ question_title }}".
31 {% endblocktrans %}
32 {% endtextcontent %}
33
34 {% endemail %}