Ticket #3491: admin-patch.diff
File admin-patch.diff, 1.3 KB (added by , 18 years ago) |
---|
-
django/contrib/admin/templates/admin/base.html
22 22 {% block branding %}{% endblock %} 23 23 </div> 24 24 {% if user.is_authenticated and user.is_staff %} 25 <div id="user-tools">{% trans 'Welcome,' %} <strong>{% if user.first_name %}{{ user.first_name|escape }}{% else %}{{ user.username }}{% endif %}</strong>. {% block userlinks %}<a href=" doc/">{% trans 'Documentation' %}</a> / <a href="password_change/">{% trans 'Change password' %}</a> / <a href="logout/">{% trans 'Log out' %}</a>{% endblock %}</div>25 <div id="user-tools">{% trans 'Welcome,' %} <strong>{% if user.first_name %}{{ user.first_name|escape }}{% else %}{{ user.username }}{% endif %}</strong>. {% block userlinks %}<a href="{% url django.contrib.admin.views.doc.doc_index %}">{% trans 'Documentation' %}</a> / <a href="{% url django.contrib.auth.views.password_change %}">{% trans 'Change password' %}</a> / <a href="{% url django.contrib.auth.views.logout %}">{% trans 'Log out' %}</a>{% endblock %}</div> 26 26 {% endif %} 27 27 {% block nav-global %}{% endblock %} 28 28 </div>