mirror of
https://github.com/wagtail/wagtail.git
synced 2024-11-30 01:46:24 +01:00
Make "Hello" part of notification emails use user's username if we don't know their real name
This commit is contained in:
parent
eccb0990bb
commit
7fee62f8eb
@ -1,4 +1,4 @@
|
||||
{% load i18n %}{% block subject %}{% endblock %}
|
||||
{% block greeting %}{% trans "Hello" %} {{ user.get_short_name }},{% endblock %}
|
||||
{% block greeting %}{% trans "Hello" %} {{ user.get_short_name|default:user.get_username }},{% endblock %}
|
||||
{% block notification %}{% endblock %}
|
||||
{% trans "Edit your notification preferences here:" %} {{ settings.BASE_URL }}{% url 'wagtailadmin_account_notification_preferences' %}
|
||||
|
Loading…
Reference in New Issue
Block a user