]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/skins/default/templates/notifications/answeraccepted.html
Removes a redundant piece of text from the tags template.
[osqa.git] / forum / skins / default / templates / notifications / answeraccepted.html
index 7170a5ddcf9a3c2e2d48a89a99066bc6aeff50c0..76927e3c5d803df5ed37a41b7cb962e3001e0fc4 100644 (file)
@@ -7,17 +7,15 @@
     question = answer.question
     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 %}
         <p style="{{ p_style }}">
             {% blocktrans %}
             {{ accepted_by_link }} has just accepted {{ answer_author_link }}'s answer on his question