]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/skins/default/templates/notifications/answeraccepted.html
Resolves OSQA-721, adding the ViewBox images in a separate directory in the media...
[osqa.git] / forum / skins / default / templates / notifications / answeraccepted.html
index 76927e3c5d803df5ed37a41b7cb962e3001e0fc4..5157bd0addbac8e92d2aa775bac33d8ae50f7992 100644 (file)
@@ -1,19 +1,18 @@
 {% load i18n extra_tags email_tags %}
 
 {% declare %}
-    prefix = settings.EMAIL_SUBJECT_PREFIX
-    app_name = settings.APP_SHORT_NAME
-    answer_author = answer.author.username
+    prefix = html.mark_safe(smart_str(settings.EMAIL_SUBJECT_PREFIX))
+    answer_author = html.mark_safe(smart_str(answer.author.username))
     question = answer.question
-    question_title = html.mark_safe(question.title)
-    accepted_by = answer.nstate.accepted.by.username
+    question_title = html.mark_safe(smart_str(question.title))
+    accepted_by = html.mark_safe(smart_str(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 %}
+    {% subject %}{% blocktrans %}{{ prefix }} An answer to: {{ question_title }} has been accepted{% endblocktrans %}{% endsubject %}
 
     {% htmlcontent notifications/base.html %}
         <p style="{{ p_style }}">