Ticket #13749: ticket_13749.4.diff

File ticket_13749.4.diff, 1.9 KB (added by DHessing, 4 years ago)

removed redundant conditional test

  • 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"><a href="{% url 'admin:index' %}">{% trans 'Django administration' %}</a></h1>
    89{% endblock %}
    910
    1011{% 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