Ticket #13749: ticket_13749.2.diff

File ticket_13749.2.diff, 1.5 KB (added by DHessing, 13 years ago)

Implemented julien's and adrian's suggestions

  • django/contrib/admin/templates/admin/base_site.html

     
    11{% extends "admin/base.html" %}
     2{% load url from future %}
    23{% load i18n %}
    34
    45{% block title %}{{ title }} | {% trans 'Django site admin' %}{% endblock %}
    56
    67{% block branding %}
    7 <h1 id="site-name">{% trans 'Django administration' %}</h1>
     8<h1 id="site-name">
     9{% url 'admin:index' as index_url %}
     10{% if index_url %}
     11    <a href="{{ index_url }}">
     12{% else %}
     13    <a href="{{ root_path }}">
     14{% endif %}
     15{% trans 'Django administration' %}</a></h1>
    816{% endblock %}
    917
    1018{% block nav-global %}{% endblock %}
  • django/contrib/admin/templates/admin/base.html

     
    2828            {% trans 'Welcome,' %}
    2929            <strong>{% filter force_escape %}{% firstof user.first_name user.username %}{% endfilter %}</strong>.
    3030            {% block userlinks %}
     31                {% block userlinks_viewsite %}
     32                    <a href="/">{% trans 'View site' %}</a> /
     33                {% endblock %}
    3134                {% url 'django-admindocs-docroot' as docsroot %}
    3235                {% if docsroot %}
    3336                    <a href="{{ docsroot }}">{% trans 'Documentation' %}</a> /
Back to Top