Commit 3e2fc8a0 authored by Michal Čihař's avatar Michal Čihař

Fix rendering of registration email

parent 1d3c3172
{% load url from future %}{% load i18n %}{% load weblate %}{% filter wordwrap:72 %}{% blocktrans %}Hi, {% load url from future %}{% load i18n %}{% load weblate %}{% filter wordwrap:72 %}{% blocktrans with site|site_title as site_title %}Hi,
This is an automatic email to help you complete your registration This is an automatic email to help you complete your registration
with {% site_title %}. with {{ site_title }}.
Please open the following link in your web browser. If the link Please open the following link in your web browser. If the link
is split over several lines, you may need to copy it in the is split over several lines, you may need to copy it in the
...@@ -9,10 +9,10 @@ address bar.{% endblocktrans %} ...@@ -9,10 +9,10 @@ address bar.{% endblocktrans %}
http://{{ site.domain }}{% url 'registration.views.activate' activation_key=activation_key %} http://{{ site.domain }}{% url 'registration.views.activate' activation_key=activation_key %}
{% blocktrans %} {% blocktrans with site|site_title as site_title %}
If there is a problem with your registration, please reply to If there is a problem with your registration, please reply to
this email. this email.
Best regards, Best regards,
{% site_title %} {{ site_title }}
{% endblocktrans %}{% endfilter%} {% endblocktrans %}{% endfilter%}
{% load i18n %}{% load weblate %}{% blocktrans %}Your registration on {% site_title %}{% endblocktrans %} {% load i18n %}{% load weblate %}{% blocktrans with site|site_title as site_title %}Your registration on {{ site_title }}{% endblocktrans %}
...@@ -31,6 +31,7 @@ def fmttranslation(value): ...@@ -31,6 +31,7 @@ def fmttranslation(value):
return mark_safe(value) return mark_safe(value)
@register.simple_tag @register.filter
def site_title(): @stringfilter
def site_title(value):
return settings.SITE_TITLE return settings.SITE_TITLE
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment