]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/notifications/answeraccepted.html
notifications improvement, now we make sure that the username has passed through...
[osqa.git] / forum / skins / default / templates / notifications / answeraccepted.html
1 {% load i18n extra_tags email_tags %}
2
3 {% declare %}
4     prefix = html.mark_safe(smart_str(settings.EMAIL_SUBJECT_PREFIX))
5     answer_author = html.mark_safe(smart_str(answer.author.username))
6     question = answer.question
7     question_title = html.mark_safe(smart_str(question.title))
8     accepted_by = html.mark_safe(smart_str(answer.nstate.accepted.by.username))
9     accepted_by_link = html.objlink(answer.nstate.accepted.by, style=settings.EMAIL_ANCHOR_STYLE)
10     answer_author_link = html.objlink(answer.author, style=settings.EMAIL_ANCHOR_STYLE)
11     question_link = html.objlink(question, style=settings.EMAIL_ANCHOR_STYLE)
12 {% enddeclare %}
13
14 {% email %}
15     {% subject %}{% blocktrans %}{{ prefix }} An answer to: {{ question_title }} has been accepted{% endblocktrans %}{% endsubject %}
16
17     {% htmlcontent notifications/base.html %}
18         <p style="{{ p_style }}">
19             {% blocktrans %}
20             {{ accepted_by_link }} has just accepted {{ answer_author_link }}'s answer on his question
21             {{ question_link }}.
22             {% endblocktrans %}
23         </p>
24     {% endhtmlcontent %}
25
26 {% textcontent notifications/base_text.html %}
27 {% blocktrans %}
28 {{ accepted_by }} has just accepted {{ answer_author }}'s answer on his question
29 "{{ question_title }}".
30 {% endblocktrans %}
31 {% endtextcontent %}
32
33 {% endemail %}