mirror of
https://github.com/Crocmagnon/cookiecutter-django.git
synced 2024-05-04 02:45:12 +02:00
29 lines
886 B
HTML
29 lines
886 B
HTML
|
{% load static django_htmx %}
|
||
|
|
||
|
<!DOCTYPE html>
|
||
|
<html lang="en">
|
||
|
<head>
|
||
|
<meta charset="UTF-8">
|
||
|
<title>Character Sheet</title>
|
||
|
</head>
|
||
|
<body>
|
||
|
{% include "common/hello-random.html" %}
|
||
|
<script src="{% static 'vendor/htmx-1.8.2.min.js' %}" defer></script>
|
||
|
{% django_htmx_script %}
|
||
|
{% if debug %}
|
||
|
<script type="javascript">
|
||
|
if (typeof window.htmx !== "undefined") {
|
||
|
htmx.on("htmx:afterSettle", function(detail) {
|
||
|
if (
|
||
|
typeof window.djdt !== "undefined"
|
||
|
&& detail.target instanceof HTMLBodyElement
|
||
|
) {
|
||
|
djdt.show_toolbar();
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
</script>
|
||
|
{% endif %}
|
||
|
</body>
|
||
|
</html>
|