diff --git a/django/contrib/admin/templates/admin/base.html b/django/contrib/admin/templates/admin/base.html index 479e18b2ee..f99e6d88b6 100644 --- a/django/contrib/admin/templates/admin/base.html +++ b/django/contrib/admin/templates/admin/base.html @@ -22,7 +22,7 @@ {% block branding %}{% endblock %} {% if user.is_authenticated and user.is_staff %} -
{% trans 'Welcome,' %} {% if user.first_name %}{{ user.first_name|escape }}{% else %}{{ user.username }}{% endif %}. {% block userlinks %}{% trans 'Documentation' %} / {% trans 'Change password' %} / {% trans 'Log out' %}{% endblock %}
+
{% trans 'Welcome,' %} {% if user.first_name %}{{ user.first_name|escape }}{% else %}{{ user.username }}{% endif %}. {% block userlinks %}{% url django-admindocs-docroot as docsroot %}{% if docsroot %}{% trans 'Documentation' %} / {% endif %}{% trans 'Change password' %} / {% trans 'Log out' %}{% endblock %}
{% endif %} {% block nav-global %}{% endblock %} diff --git a/django/contrib/admindocs/urls.py b/django/contrib/admindocs/urls.py index e7baa76fc0..57edb5697b 100644 --- a/django/contrib/admindocs/urls.py +++ b/django/contrib/admindocs/urls.py @@ -2,14 +2,40 @@ from django.conf.urls.defaults import * from django.contrib.admindocs import views urlpatterns = patterns('', - ('^$', views.doc_index), - ('^bookmarklets/$', views.bookmarklets), - ('^tags/$', views.template_tag_index), - ('^filters/$', views.template_filter_index), - ('^views/$', views.view_index), - ('^views/(?P[^/]+)/$', views.view_detail), - ('^models/$', views.model_index), - ('^models/(?P[^\.]+)\.(?P[^/]+)/$', views.model_detail), -# ('^templates/$', views.template_index), - ('^templates/(?P