X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/3522ca5472c0496b3dba563d2e590d724257b16a..92c0e79e01fe60357e76de4cd76df5c067976a18:/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 504970b..7658087 100644 --- a/forum/skins/default/templates/notifications/answeraccepted.html +++ b/forum/skins/default/templates/notifications/answeraccepted.html @@ -1,17 +1,33 @@ -{% extends "email_base.html" %} -{% load i18n %} -{% load extra_tags %} - -{% block content %} -

{% trans "Hello" %} {% user_var username %},

- -

- {% blocktrans with answer.accepted.by.username as accepter and answer.author.username as answer_author and settings.APP_SHORT_NAME as app_title and settings.APP_URL as app_url and question.get_absolute_url as question_url and question.title as question_title %} - Just to let you know that {{ accepter }} has just accepted {{ answer_author }}'s answer on his question - {{ question_title }}: - {% endblocktrans %} -

- -

{% blocktrans %}Sincerely,
- Forum Administrator{% endblocktrans %}

-{% endblock %} +{% load i18n extra_tags email_tags %} + +{% declare %} + prefix = html.mark_safe(settings.EMAIL_SUBJECT_PREFIX) + answer_author = html.mark_safe(answer.author.username) + question = answer.question + question_title = html.mark_safe(question.title) + accepted_by = html.mark_safe(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 }} An answer to: {{ question_title }} has been accepted{% endblocktrans %}{% endsubject %} + + {% htmlcontent notifications/base.html %} +

+ {% blocktrans %} + {{ accepted_by_link }} has just accepted {{ answer_author_link }}'s answer on his question + {{ question_link }}. + {% endblocktrans %} +

+ {% endhtmlcontent %} + +{% textcontent notifications/base_text.html %} +{% blocktrans %} +{{ accepted_by }} has just accepted {{ answer_author }}'s answer on his question +"{{ question_title }}". +{% endblocktrans %} +{% endtextcontent %} + +{% endemail %}