Fixed #32443 -- Removed "shifted" CSS class when admin's sidebar is disabled.
This commit is contained in:
parent
d02d60eb0f
commit
1710cdbe79
|
@ -69,7 +69,7 @@
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<div class="main shifted" id="main">
|
<div class="main" id="main">
|
||||||
{% if not is_popup and is_nav_sidebar_enabled %}
|
{% if not is_popup and is_nav_sidebar_enabled %}
|
||||||
{% block nav-sidebar %}
|
{% block nav-sidebar %}
|
||||||
{% include "admin/nav_sidebar.html" %}
|
{% include "admin/nav_sidebar.html" %}
|
||||||
|
|
|
@ -39,6 +39,7 @@ class AdminSidebarTests(TestCase):
|
||||||
|
|
||||||
def test_sidebar_not_on_index(self):
|
def test_sidebar_not_on_index(self):
|
||||||
response = self.client.get(reverse('test_with_sidebar:index'))
|
response = self.client.get(reverse('test_with_sidebar:index'))
|
||||||
|
self.assertContains(response, '<div class="main" id="main">')
|
||||||
self.assertNotContains(response, '<nav class="sticky" id="nav-sidebar">')
|
self.assertNotContains(response, '<nav class="sticky" id="nav-sidebar">')
|
||||||
|
|
||||||
def test_sidebar_disabled(self):
|
def test_sidebar_disabled(self):
|
||||||
|
|
Loading…
Reference in New Issue