Ticket #13749: ticket_13749.3.diff

File ticket_13749.3.diff, 2.0 KB (added by Niels van Dijk, 13 years ago)

Updated patch. Set the 'Django administration' heading to the default/old styling.

  • django/contrib/admin/media/css/base.css

     
    788788    color: #f4f379;
    789789}
    790790
     791#branding h1 a:link,
     792#branding h1 a:visited {
     793    color: #f4f379;
     794}
     795
     796#branding h1 a:hover {
     797    text-decoration: none;
     798}
     799
    791800#branding h2 {
    792801    padding: 0 10px;
    793802    font-size: 14px;
  • 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