Skip to content

Commit 0cda322

Browse files
committed
Add two template blocks to allow overriding CSS and JS
1 parent f277b9d commit 0cda322

File tree

1 file changed

+5
-1
lines changed
  • debug_toolbar/templates/debug_toolbar

1 file changed

+5
-1
lines changed

debug_toolbar/templates/debug_toolbar/base.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
{% load i18n %}{% load static %}
1+
{% load i18n static %}
2+
{% block css %}
23
<link rel="stylesheet" href="{% static 'debug_toolbar/css/print.css' %}" media="print">
34
<link rel="stylesheet" href="{% static 'debug_toolbar/css/toolbar.css' %}">
5+
{% endblock %}
6+
{% block js %}
47
<script type="module" src="{% static 'debug_toolbar/js/toolbar.js' %}" async></script>
8+
{% endblock %}
59
<div id="djDebug" class="djdt-hidden" dir="ltr"
610
{% if toolbar.store_id %}data-store-id="{{ toolbar.store_id }}" data-render-panel-url="{% url 'djdt:render_panel' %}"{% endif %}
711
data-default-show="{% if toolbar.config.SHOW_COLLAPSED %}false{% else %}true{% endif %}"

0 commit comments

Comments
 (0)