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