mirror of
https://github.com/django/django.git
synced 2025-03-11 09:52:38 +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:
parent
30fc49a7ca
commit
2bc5143866
@ -26,8 +26,10 @@
|
|||||||
</div>
|
</div>
|
||||||
{% if user.is_active and user.is_staff %}
|
{% if user.is_active and user.is_staff %}
|
||||||
<div id="user-tools">
|
<div id="user-tools">
|
||||||
{% trans 'Welcome,' %}
|
{% block welcome-msg %}
|
||||||
<strong>{% firstof user.get_short_name user.get_username %}</strong>.
|
{% trans 'Welcome,' %}
|
||||||
|
<strong>{% firstof user.get_short_name user.get_username %}</strong>.
|
||||||
|
{% endblock %}
|
||||||
{% block userlinks %}
|
{% block userlinks %}
|
||||||
{% url 'django-admindocs-docroot' as docsroot %}
|
{% url 'django-admindocs-docroot' as docsroot %}
|
||||||
{% if docsroot %}
|
{% if docsroot %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user