File: boost.html

package info (click to toggle)
python-django-debug-toolbar 1%3A6.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,052 kB
  • sloc: python: 7,555; javascript: 636; makefile: 67; sh: 16
file content (30 lines) | stat: -rw-r--r-- 765 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{% load cache %}
<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <title>Index of Tests (htmx)</title>
    <script src="//unpkg.com/htmx.org@1.8.4"></script>
  </head>
  <body hx-boost="true">
    <h1>Index of Tests (htmx) - Page {{ page_num|default:"1" }}</h1>

    <p>
      For the debug panel to remain through page navigation, add the setting:
      <pre>
DEBUG_TOOLBAR_CONFIG = {
  "ROOT_TAG_EXTRA_ATTRS": "hx-preserve"
}
      </pre>
    </p>

    <ul>
        <li><a href="/admin/">Django Admin</a></li>
        <li><a href="{% url "htmx" %}">HTMX - Page 1</a></li>
        <li><a href="{% url "htmx2" %}">HTMX- Page 2</a></li>
    </ul>

    <a href="{% url "home" %}">Home</a>

  </body>
</html>