Code

Ticket #7467: ticket-7467-01.diff

File ticket-7467-01.diff, 791 bytes (added by rctay, 4 years ago)

See comment 6.

Line 
1diff --git a/django/contrib/admin/templates/admin/base.html b/django/contrib/admin/templates/admin/base.html
2index d1216a1..d793618 100644
3--- a/django/contrib/admin/templates/admin/base.html
4+++ b/django/contrib/admin/templates/admin/base.html
5@@ -24,8 +24,10 @@
6         </div>
7         {% if user.is_active and user.is_staff %}
8         <div id="user-tools">
9-            {% trans 'Welcome,' %}
10-            <strong>{% firstof user.first_name user.username %}</strong>.
11+            {% block welcome-msg %}
12+                {% trans 'Welcome,' %}
13+                <strong>{% firstof user.first_name user.username %}</strong>.
14+            {% endblock %}
15             {% block userlinks %}
16                 {% url django-admindocs-docroot as docsroot %}
17                 {% if docsroot %}