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