Commit bb145e2c authored by Thomas Sorrel's avatar Thomas Sorrel Committed by Julien Phalip
Browse files

Fixed #13629 -- Added CSS classes to the `<body>` tag of some admin templates...

Fixed #13629 -- Added CSS classes to the `<body>` tag of some admin templates to allow style customizations per app or per model.
parent 11b7b9ad
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -544,6 +544,7 @@ answer newbie questions, and generally made Django that much better:
    George Song <george@damacy.net>
    sopel
    Leo Soto <leo.soto@gmail.com>
    Thomas Sorrel
    Wiliam Alves de Souza <wiliamsouza83@gmail.com>
    Don Spaulding <donspauldingii@gmail.com>
    Calvin Spealman <ironfroggy@gmail.com>
+1 −0
Original line number Diff line number Diff line
@@ -439,6 +439,7 @@ class AdminSite(object):
        context = {
            'title': _('%s administration') % capfirst(app_label),
            'app_list': [app_dict],
            'app_label': app_label,
        }
        context.update(extra_context or {})

+2 −0
Original line number Diff line number Diff line
{% extends "admin/index.html" %}
{% load i18n %}

{% block bodyclass %}app-{{ app_label }} {{ block.super }}{% endblock %}

{% if not is_popup %}
{% block breadcrumbs %}
<div class="breadcrumbs">
+1 −1
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@

{% block coltype %}colM{% endblock %}

{% block bodyclass %}{{ opts.app_label }}-{{ opts.object_name.lower }} change-form{% endblock %}
{% block bodyclass %}app-{{ opts.app_label }} model-{{ opts.object_name.lower }} change-form{% endblock %}

{% if not is_popup %}
{% block breadcrumbs %}
+1 −1
Original line number Diff line number Diff line
@@ -32,7 +32,7 @@
{% endif %}{% endif %}
{% endblock %}

{% block bodyclass %}change-list{% endblock %}
{% block bodyclass %}app-{{ opts.app_label }} model-{{ opts.object_name.lower }} change-list{% endblock %}

{% if not is_popup %}
{% block breadcrumbs %}
Loading