Ticket #10061: admin-urls.9.diff
File admin-urls.9.diff, 1.9 KB (added by , 16 years ago) |
---|
-
django/contrib/admin/sites.py
164 164 name='%sadmin_index' % self.name), 165 165 url(r'^logout/$', 166 166 wrap(self.logout), 167 name='%sadmin_logout' ),167 name='%sadmin_logout' % self.name), 168 168 url(r'^password_change/$', 169 169 wrap(self.password_change), 170 170 name='%sadmin_password_change' % self.name), -
django/contrib/admin/templates/admin/base.html
25 25 {% block branding %}{% endblock %} 26 26 </div> 27 27 {% if user.is_authenticated and user.is_staff %} 28 <div id="user-tools">{% trans 'Welcome,' %} <strong>{% firstof user.first_name user.username %}</strong>. {% block userlinks %}{% url django-admindocs-docroot as docsroot %}{% if docsroot %}<a href="{{ docsroot }}">{% trans 'Documentation' %}</a> / {% endif %}<a href="{ { root_path }}password_change/">{% trans 'Change password' %}</a> / <a href="{{ root_path }}logout/">{% trans 'Log out' %}</a>{% endblock %}</div>28 <div id="user-tools">{% trans 'Welcome,' %} <strong>{% firstof user.first_name user.username %}</strong>. {% block userlinks %}{% url django-admindocs-docroot as docsroot %}{% if docsroot %}<a href="{{ docsroot }}">{% trans 'Documentation' %}</a> / {% endif %}<a href="{% url admin_password_change %}">{% trans 'Change password' %}</a> / <a href="{% url admin_logout %}">{% trans 'Log out' %}</a>{% endblock %}</div> 29 29 {% endif %} 30 30 {% block nav-global %}{% endblock %} 31 31 </div>