0
0
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:
Karl Hobley 2015-12-16 16:40:19 +00:00 committed by Matt Westcott
parent eccb0990bb
commit 7fee62f8eb

View File

@ -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' %}