1
0
mirror of https://github.com/django/django.git synced 2025-04-05 14:06:42 +00:00

[3.1.x] Fixed -- Improved loading of navigation sidebar in admin.

Backport of 4ae9a2b18e2b558df2c084064c42faecac2d75c1 from master
This commit is contained in:
Collin Anderson 2020-06-01 14:35:19 -04:00 committed by Mariusz Felisiak
parent 2265bbe7b5
commit 5b3886d091

@ -6,6 +6,7 @@
<link rel="stylesheet" type="text/css" href="{% block stylesheet %}{% static "admin/css/base.css" %}{% endblock %}">
{% if not is_popup and is_nav_sidebar_enabled %}
<link rel="stylesheet" type="text/css" href="{% static "admin/css/nav_sidebar.css" %}">
<script src="{% static 'admin/js/nav_sidebar.js' %}" defer></script>
{% endif %}
{% block extrastyle %}{% endblock %}
{% if LANGUAGE_BIDI %}<link rel="stylesheet" type="text/css" href="{% block stylesheet_rtl %}{% static "admin/css/rtl.css" %}{% endblock %}">{% endif %}
@ -98,9 +99,5 @@
</div>
</div>
<!-- END Container -->
{% if not is_popup and is_nav_sidebar_enabled %}
<script src="{% static 'admin/js/nav_sidebar.js' %}" async></script>
{% endif %}
</body>
</html>