summaryrefslogtreecommitdiffstats
path: root/templates/base.html
blob: 0af5d57e1a91549d876acb07b2bd8d4a5a4adc43 (plain) (blame)
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
31
32
33
34
35
<!doctype html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Minecraft UI</title>
    <script src="/static/htmx.min.js"></script>
    <link rel="stylesheet" href="/static/style.css" />
  </head>
  <body>
    <nav hx-boost="true">
      <span class="brand">Minecraft UI</span>
      <div class="nav-links">
        <a href="/">Dashboard</a>
        <a href="/instances">Instances</a>
        <a href="/players">Players</a>
        {% if is_superuser %}
        <a href="/accounts">Accounts</a>
        {% endif %}
        <span class="nav-user">{{ username }}</span>
        <form action="/logout" method="post" style="display: inline">
          <button type="submit" class="btn-link">Logout</button>
        </form>
      </div>
    </nav>

    {% if password_change_required %}
    <div class="flash flash-warn">
      You must change your password before continuing.
    </div>
    {% endif %}

    <main>{% block content %}{% endblock %}</main>
  </body>
</html>