]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/skins/default/templates/notifications/newmember.html
removing the smart_str function from the html.objelink function argument, it causes...
[osqa.git] / forum / skins / default / templates / notifications / newmember.html
index 1c385b3837e31a2ed91b8318f442a24f711169ef..aa5d5ec2bf949f6d5e5e35bdaf7b911c42fbab84 100644 (file)
@@ -1,16 +1,18 @@
 {% load i18n extra_tags email_tags %}
 
 {% declare %}
-    prefix = settings.EMAIL_SUBJECT_PREFIX
-    app_name = settings.APP_SHORT_NAME
-    app_url = settings.APP_URL
-    newmember_name = newmember.username
-    newmember_url = newmember.get_profile_url()
+    prefix = html.mark_safe(smart_str(settings.EMAIL_SUBJECT_PREFIX))
+    app_name = smart_str(settings.APP_SHORT_NAME)
+    safe_app_name = html.mark_safe(smart_str(settings.APP_SHORT_NAME))
+    app_url = smart_str(settings.APP_URL)
+    newmember_name = smart_str(newmember.username)
+    safe_newmember_name = html.mark_safe(smart_str(newmember.username))
+    newmember_url = smart_str(newmember.get_profile_url())
     newmember_link = html.objlink(newmember, style=settings.EMAIL_ANCHOR_STYLE)
 {% enddeclare %}
 
 {% email %}
-    {% subject %}{% blocktrans %}{{ prefix }}{{ newmember_name }} is a new member on {{ app_name }}{% endblocktrans %}{% endsubject %}
+    {% subject %}{% blocktrans %}{{ prefix }} {{ safe_newmember_name }} is a new member on {{ safe_app_name }}{% endblocktrans %}{% endsubject %}
 
     {% htmlcontent notifications/base.html %}
         <p style="{{ p_style }}">
@@ -23,7 +25,7 @@
 
 {% textcontent notifications/base_text.html %}
 {% blocktrans %}
-{{ newmember_name }} has just joined {{ app_name }}. You can visit {{ newmember_name }}'s profile using the following url:
+{{ safe_newmember_name }} has just joined {{ safe_app_name }}. You can visit {{ safe_newmember_name }}'s profile using the following url:
 {{ app_url }}{{ newmember_url }}
 {% endblocktrans %}
 {% endtextcontent %}