Ticket #13588: 13588-admin-templates.diff

File 13588-admin-templates.diff, 10.8 KB (added by ramiro, 5 years ago)

Patch with modifications to admin templates, as per Florian request on IRC

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

    diff --git a/django/contrib/admin/templates/admin/app_index.html b/django/contrib/admin/templates/admin/app_index.html
    a b  
    1 {% extends "admin/index.html" %} 
    2 {% load i18n %} 
     1{% extends "admin/index.html" %}
     2{% load i18n %}
    33
    44{% if not is_popup %}
    55
    66{% block breadcrumbs %}
    7 <div class="breadcrumbs"><a href="../">
    8 {% trans "Home" %}</a> &rsaquo; 
     7<div class="breadcrumbs"><a href="{% url admin:index %}">
     8{% trans "Home" %}</a> &rsaquo;
    99{% for app in app_list %}
    1010{% blocktrans with app.name as name %}{{ name }}{% endblocktrans %}
    1111{% endfor %}</div>{% endblock %}
    1212
    13 {% endif %} 
     13{% endif %}
    1414
    15 {% block sidebar %}{% endblock %}
    16  No newline at end of file
     15{% block sidebar %}{% endblock %}
  • django/contrib/admin/templates/admin/auth/user/change_password.html

    diff --git a/django/contrib/admin/templates/admin/auth/user/change_password.html b/django/contrib/admin/templates/admin/auth/user/change_password.html
    a b  
    88{% block bodyclass %}{{ opts.app_label }}-{{ opts.object_name.lower }} change-form{% endblock %}
    99{% block breadcrumbs %}{% if not is_popup %}
    1010<div class="breadcrumbs">
    11      <a href="../../../../">{% trans "Home" %}</a> &rsaquo;
     11     <a href="{% url admin:index %}">{% trans "Home" %}</a> &rsaquo;
    1212     <a href="../../../">{{ opts.app_label|capfirst|escape }}</a> &rsaquo;
    1313     <a href="../../">{{ opts.verbose_name_plural|capfirst }}</a> &rsaquo;
    1414     <a href="../">{{ original|truncatewords:"18" }}</a> &rsaquo;
  • django/contrib/admin/templates/admin/base.html

    diff --git a/django/contrib/admin/templates/admin/base.html b/django/contrib/admin/templates/admin/base.html
    a b  
    3434                {% endif %}
    3535                {% url admin:password_change as password_change_url %}
    3636                {% if password_change_url %}
    37                     <a href="{{ password_change_url }}">
    38                 {% else %}
    39                     <a href="{{ root_path }}password_change/">
     37                    <a href="{{ password_change_url }}">{% trans 'Change password' %}</a> /
    4038                {% endif %}
    41                 {% trans 'Change password' %}</a> /
    4239                {% url admin:logout as logout_url %}
    4340                {% if logout_url %}
    44                     <a href="{{ logout_url }}">
    45                 {% else %}
    46                     <a href="{{ root_path }}logout/">
     41                    <a href="{{ logout_url }}">{% trans 'Log out' %}</a>
    4742                {% endif %}
    48                 {% trans 'Log out' %}</a>
    4943            {% endblock %}
    5044        </div>
    5145        {% endif %}
  • django/contrib/admin/templates/admin/change_form.html

    diff --git a/django/contrib/admin/templates/admin/change_form.html b/django/contrib/admin/templates/admin/change_form.html
    a b  
    1515
    1616{% block breadcrumbs %}{% if not is_popup %}
    1717<div class="breadcrumbs">
    18      <a href="../../../">{% trans "Home" %}</a> &rsaquo;
    19      <a href="../../">{{ app_label|capfirst|escape }}</a> &rsaquo; 
    20      {% if has_change_permission %}<a href="../">{{ opts.verbose_name_plural|capfirst }}</a>{% else %}{{ opts.verbose_name_plural|capfirst }}{% endif %} &rsaquo; 
     18     <a href="{% url admin:index %}">{% trans "Home" %}</a> &rsaquo;
     19     <a href="../../">{{ app_label|capfirst|escape }}</a> &rsaquo;
     20     {% if has_change_permission %}<a href="../">{{ opts.verbose_name_plural|capfirst }}</a>{% else %}{{ opts.verbose_name_plural|capfirst }}{% endif %} &rsaquo;
    2121     {% if add %}{% trans "Add" %} {{ opts.verbose_name }}{% else %}{{ original|truncatewords:"18" }}{% endif %}
    2222</div>
    2323{% endif %}{% endblock %}
  • django/contrib/admin/templates/admin/change_list.html

    diff --git a/django/contrib/admin/templates/admin/change_list.html b/django/contrib/admin/templates/admin/change_list.html
    a b  
    3838{% if not is_popup %}
    3939  {% block breadcrumbs %}
    4040    <div class="breadcrumbs">
    41       <a href="../../">
     41      <a href="{% url admin:index %}">
    4242        {% trans "Home" %}
    4343      </a>
    44        &rsaquo; 
     44       &rsaquo;
    4545       <a href="../">
    4646         {{ app_label|capfirst }}
    4747      </a>
    48       &rsaquo; 
     48      &rsaquo;
    4949      {{ cl.opts.verbose_name_plural|capfirst }}
    5050    </div>
    5151  {% endblock %}
     
    8484          </div>
    8585        {% endif %}
    8686      {% endblock %}
    87      
     87
    8888      <form id="changelist-form" action="" method="post"{% if cl.formset.is_multipart %} enctype="multipart/form-data"{% endif %}>{% csrf_token %}
    8989      {% if cl.formset %}
    9090        {{ cl.formset.management_form }}
  • django/contrib/admin/templates/admin/delete_confirmation.html

    diff --git a/django/contrib/admin/templates/admin/delete_confirmation.html b/django/contrib/admin/templates/admin/delete_confirmation.html
    a b  
    33
    44{% block breadcrumbs %}
    55<div class="breadcrumbs">
    6      <a href="../../../../">{% trans "Home" %}</a> &rsaquo;
    7      <a href="../../../">{{ app_label|capfirst }}</a> &rsaquo; 
     6     <a href="{% url admin:index %}">{% trans "Home" %}</a> &rsaquo;
     7     <a href="../../../">{{ app_label|capfirst }}</a> &rsaquo;
    88     <a href="../../">{{ opts.verbose_name_plural|capfirst }}</a> &rsaquo;
    99     <a href="../">{{ object|truncatewords:"18" }}</a> &rsaquo;
    1010     {% trans 'Delete' %}
  • django/contrib/admin/templates/admin/delete_selected_confirmation.html

    diff --git a/django/contrib/admin/templates/admin/delete_selected_confirmation.html b/django/contrib/admin/templates/admin/delete_selected_confirmation.html
    a b  
    33
    44{% block breadcrumbs %}
    55<div class="breadcrumbs">
    6      <a href="../../">{% trans "Home" %}</a> &rsaquo;
     6     <a href="{% url admin:index %}">{% trans "Home" %}</a> &rsaquo;
    77     <a href="../">{{ app_label|capfirst }}</a> &rsaquo;
    88     <a href="./">{{ opts.verbose_name_plural|capfirst }}</a> &rsaquo;
    99     {% trans 'Delete multiple objects' %}
  • django/contrib/admin/templates/admin/invalid_setup.html

    diff --git a/django/contrib/admin/templates/admin/invalid_setup.html b/django/contrib/admin/templates/admin/invalid_setup.html
    a b  
    11{% extends "admin/base_site.html" %}
    22{% load i18n %}
    33
    4 {% block breadcrumbs %}<div class="breadcrumbs"><a href="../../">{% trans 'Home' %}</a> &rsaquo; {{ title }}</div>{% endblock %}
     4{% block breadcrumbs %}<div class="breadcrumbs"><a href="{% url admin:index %}">{% trans 'Home' %}</a> &rsaquo; {{ title }}</div>{% endblock %}
    55
    66{% block content %}
    77<p>{% trans "Something's wrong with your database installation. Make sure the appropriate database tables have been created, and make sure the database is readable by the appropriate user." %}</p>
  • django/contrib/admin/templates/admin/object_history.html

    diff --git a/django/contrib/admin/templates/admin/object_history.html b/django/contrib/admin/templates/admin/object_history.html
    a b  
    33
    44{% block breadcrumbs %}
    55<div class="breadcrumbs">
    6     <a href="../../../../">{% trans 'Home' %}</a> &rsaquo;
    7     <a href="../../../">{{ app_label|capfirst }}</a> &rsaquo; 
    8     <a href="../../">{{ module_name }}</a> &rsaquo; 
    9     <a href="../">{{ object|truncatewords:"18" }}</a> &rsaquo; 
     6    <a href="{% url admin:index %}">{% trans 'Home' %}</a> &rsaquo;
     7    <a href="../../../">{{ app_label|capfirst }}</a> &rsaquo;
     8    <a href="../../">{{ module_name }}</a> &rsaquo;
     9    <a href="../">{{ object|truncatewords:"18" }}</a> &rsaquo;
    1010    {% trans 'History' %}
    1111</div>
    1212{% endblock %}
  • django/contrib/admin/templates/registration/password_reset_complete.html

    diff --git a/django/contrib/admin/templates/registration/password_reset_complete.html b/django/contrib/admin/templates/registration/password_reset_complete.html
    a b  
    11{% extends "admin/base_site.html" %}
    22{% load i18n %}
    33
    4 {% block breadcrumbs %}<div class="breadcrumbs"><a href="../../">{% trans 'Home' %}</a> &rsaquo; {% trans 'Password reset' %}</div>{% endblock %}
     4{% block breadcrumbs %}<div class="breadcrumbs"><a href="{% url admin:index %}">{% trans 'Home' %}</a> &rsaquo; {% trans 'Password reset' %}</div>{% endblock %}
    55
    66{% block title %}{% trans 'Password reset complete' %}{% endblock %}
    77
  • django/contrib/admin/templates/registration/password_reset_confirm.html

    diff --git a/django/contrib/admin/templates/registration/password_reset_confirm.html b/django/contrib/admin/templates/registration/password_reset_confirm.html
    a b  
    11{% extends "admin/base_site.html" %}
    22{% load i18n %}
    33
    4 {% block breadcrumbs %}<div class="breadcrumbs"><a href="../">{% trans 'Home' %}</a> &rsaquo; {% trans 'Password reset confirmation' %}</div>{% endblock %}
     4{% block breadcrumbs %}<div class="breadcrumbs"><a href="{% url admin:index %}">{% trans 'Home' %}</a> &rsaquo; {% trans 'Password reset confirmation' %}</div>{% endblock %}
    55
    66{% block title %}{% trans 'Password reset' %}{% endblock %}
    77
  • django/contrib/admin/templates/registration/password_reset_done.html

    diff --git a/django/contrib/admin/templates/registration/password_reset_done.html b/django/contrib/admin/templates/registration/password_reset_done.html
    a b  
    11{% extends "admin/base_site.html" %}
    22{% load i18n %}
    33
    4 {% block breadcrumbs %}<div class="breadcrumbs"><a href="../">{% trans 'Home' %}</a> &rsaquo; {% trans 'Password reset' %}</div>{% endblock %}
     4{% block breadcrumbs %}<div class="breadcrumbs"><a href="{% url admin:index %}">{% trans 'Home' %}</a> &rsaquo; {% trans 'Password reset' %}</div>{% endblock %}
    55
    66{% block title %}{% trans 'Password reset successful' %}{% endblock %}
    77
  • django/contrib/admin/templates/registration/password_reset_form.html

    diff --git a/django/contrib/admin/templates/registration/password_reset_form.html b/django/contrib/admin/templates/registration/password_reset_form.html
    a b  
    11{% extends "admin/base_site.html" %}
    22{% load i18n %}
    33
    4 {% block breadcrumbs %}<div class="breadcrumbs"><a href="../">{% trans 'Home' %}</a> &rsaquo; {% trans 'Password reset' %}</div>{% endblock %}
     4{% block breadcrumbs %}<div class="breadcrumbs"><a href="{% url admin:index %}">{% trans 'Home' %}</a> &rsaquo; {% trans 'Password reset' %}</div>{% endblock %}
    55
    66{% block title %}{% trans "Password reset" %}{% endblock %}
    77
Back to Top