mirror of
https://github.com/django/django.git
synced 2025-05-06 06:56:30 +00:00
Fixed #35115 -- Made admin's footer render in <footer> tag.
This commit is contained in:
parent
0450c9bdf1
commit
e412d85b46
@ -893,11 +893,6 @@ a.deletelink:focus, a.deletelink:hover {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#footer {
|
|
||||||
clear: both;
|
|
||||||
padding: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* COLUMN TYPES */
|
/* COLUMN TYPES */
|
||||||
|
|
||||||
.colMS {
|
.colMS {
|
||||||
|
@ -451,14 +451,10 @@ input[type="submit"], button {
|
|||||||
@media (max-width: 767px) {
|
@media (max-width: 767px) {
|
||||||
/* Layout */
|
/* Layout */
|
||||||
|
|
||||||
#header, #content, #footer {
|
#header, #content {
|
||||||
padding: 15px;
|
padding: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#footer:empty {
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
div.breadcrumbs {
|
div.breadcrumbs {
|
||||||
padding: 10px 15px;
|
padding: 10px 15px;
|
||||||
}
|
}
|
||||||
|
@ -108,9 +108,9 @@
|
|||||||
<br class="clear">
|
<br class="clear">
|
||||||
</div>
|
</div>
|
||||||
<!-- END Content -->
|
<!-- END Content -->
|
||||||
{% block footer %}<div id="footer"></div>{% endblock %}
|
|
||||||
</main>
|
</main>
|
||||||
</div>
|
</div>
|
||||||
|
<footer id="footer">{% block footer %}{% endblock %}</footer>
|
||||||
</div>
|
</div>
|
||||||
<!-- END Container -->
|
<!-- END Container -->
|
||||||
|
|
||||||
|
@ -348,6 +348,10 @@ Miscellaneous
|
|||||||
* In order to improve accessibility, the admin's changelist filter is now
|
* In order to improve accessibility, the admin's changelist filter is now
|
||||||
rendered in a ``<nav>`` tag instead of a ``<div>``.
|
rendered in a ``<nav>`` tag instead of a ``<div>``.
|
||||||
|
|
||||||
|
* In order to improve accessibility, the admin's footer is now rendered in
|
||||||
|
a ``<footer>`` tag instead of a ``<div>``, and also moved below the
|
||||||
|
``<div id="main">`` element.
|
||||||
|
|
||||||
* :meth:`.SimpleTestCase.assertURLEqual` and
|
* :meth:`.SimpleTestCase.assertURLEqual` and
|
||||||
:meth:`~django.test.SimpleTestCase.assertInHTML` now add ``": "`` to the
|
:meth:`~django.test.SimpleTestCase.assertInHTML` now add ``": "`` to the
|
||||||
``msg_prefix``. This is consistent with the behavior of other assertions.
|
``msg_prefix``. This is consistent with the behavior of other assertions.
|
||||||
|
@ -1605,6 +1605,13 @@ class AdminViewBasicTest(AdminViewBasicTestCase):
|
|||||||
'<main id="content-start" class="content" tabindex="-1">',
|
'<main id="content-start" class="content" tabindex="-1">',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
def test_footer(self):
|
||||||
|
response = self.client.get(reverse("admin:index"))
|
||||||
|
self.assertContains(response, '<footer id="footer">')
|
||||||
|
self.client.logout()
|
||||||
|
response = self.client.get(reverse("admin:login"))
|
||||||
|
self.assertContains(response, '<footer id="footer">')
|
||||||
|
|
||||||
def test_aria_describedby_for_add_and_change_links(self):
|
def test_aria_describedby_for_add_and_change_links(self):
|
||||||
response = self.client.get(reverse("admin:index"))
|
response = self.client.get(reverse("admin:index"))
|
||||||
tests = [
|
tests = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user