diff options
| author | salmonik <salmonik@tuta.io> | 2026-07-12 19:38:03 +0200 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-07-12 19:38:03 +0200 |
| commit | ae7ef10b67737f08a86743f687bca30a12e9e17a (patch) | |
| tree | 056539ab76b801559dc8d07ee6599220e2bd8e07 /templates/base.html | |
| parent | architecture (diff) | |
| download | minecraft-ui-ae7ef10b67737f08a86743f687bca30a12e9e17a.tar.gz minecraft-ui-ae7ef10b67737f08a86743f687bca30a12e9e17a.zip | |
first stable
Diffstat (limited to 'templates/base.html')
| -rw-r--r-- | templates/base.html | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..3a92cd0 --- /dev/null +++ b/templates/base.html | |||
| @@ -0,0 +1,37 @@ | |||
| 1 | <!DOCTYPE html> | ||
| 2 | <html lang="en"> | ||
| 3 | <head> | ||
| 4 | <meta charset="UTF-8"> | ||
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
| 6 | <title>Minecraft UI</title> | ||
| 7 | <script src="/static/htmx.min.js"></script> | ||
| 8 | <link rel="stylesheet" href="/static/style.css"> | ||
| 9 | </head> | ||
| 10 | <body hx-boost="true"> | ||
| 11 | <nav> | ||
| 12 | <span class="brand">Minecraft UI</span> | ||
| 13 | <div class="nav-links"> | ||
| 14 | <a href="/">Dashboard</a> | ||
| 15 | <a href="/instances">Instances</a> | ||
| 16 | <a href="/players">Players</a> | ||
| 17 | {% if is_superuser %} | ||
| 18 | <a href="/accounts">Accounts</a> | ||
| 19 | {% endif %} | ||
| 20 | <span class="nav-user">{{ username }}</span> | ||
| 21 | <form action="/logout" method="post" style="display:inline"> | ||
| 22 | <button type="submit" class="btn-link">Logout</button> | ||
| 23 | </form> | ||
| 24 | </div> | ||
| 25 | </nav> | ||
| 26 | |||
| 27 | {% if password_change_required %} | ||
| 28 | <div class="flash flash-warn"> | ||
| 29 | You must change your password before continuing. | ||
| 30 | </div> | ||
| 31 | {% endif %} | ||
| 32 | |||
| 33 | <main> | ||
| 34 | {% block content %}{% endblock %} | ||
| 35 | </main> | ||
| 36 | </body> | ||
| 37 | </html> | ||
