1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00

Fixed #7467 -- Added a template block to override the admin welcome message.

Thanks Jeff Kowalczyk for the suggestion and rctay for the patch.
This commit is contained in:
Tim Graham 2013-09-10 08:48:03 -04:00
parent 30fc49a7ca
commit 2bc5143866

View File

@ -26,8 +26,10 @@
</div>
{% if user.is_active and user.is_staff %}
<div id="user-tools">
{% trans 'Welcome,' %}
<strong>{% firstof user.get_short_name user.get_username %}</strong>.
{% block welcome-msg %}
{% trans 'Welcome,' %}
<strong>{% firstof user.get_short_name user.get_username %}</strong>.
{% endblock %}
{% block userlinks %}
{% url 'django-admindocs-docroot' as docsroot %}
{% if docsroot %}