X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/58f020d4fab8251103edb89bfc4cf5d5d389d1ad..58120aed9b7ba336d9935358f0716e9e0de8b7f0:/forum/skins/default/templates/notifications/answeraccepted.html diff --git a/forum/skins/default/templates/notifications/answeraccepted.html b/forum/skins/default/templates/notifications/answeraccepted.html index 8dac6ce..76927e3 100644 --- a/forum/skins/default/templates/notifications/answeraccepted.html +++ b/forum/skins/default/templates/notifications/answeraccepted.html @@ -5,19 +5,17 @@ app_name = settings.APP_SHORT_NAME answer_author = answer.author.username question = answer.question - question_title = question.title + question_title = html.mark_safe(question.title) accepted_by = answer.nstate.accepted.by.username + accepted_by_link = html.objlink(answer.nstate.accepted.by, style=settings.EMAIL_ANCHOR_STYLE) + answer_author_link = html.objlink(answer.author, style=settings.EMAIL_ANCHOR_STYLE) + question_link = html.objlink(question, style=settings.EMAIL_ANCHOR_STYLE) {% enddeclare %} {% email %} - {% subject %}{% blocktrans %}{{ prefix }} New answer to {{ question_title }}{% endblocktrans %}{% endsubject %} + {% subject %}{% blocktrans %}{{ prefix }} An answer to {{ question_title }} has been accepted{% endblocktrans %}{% endsubject %} {% htmlcontent notifications/base.html %} - {% declare %} - accepted_by_link = html.objlink(answer.nstate.accepted.by, style=a_style) - answer_author_link = html.objlink(answer.author, style=a_style) - question_link = html.objlink(question, style=a_style) - {% enddeclare %}

{% blocktrans %} {{ accepted_by_link }} has just accepted {{ answer_author_link }}'s answer on his question