42 lines
1.2 KiB
HTML
42 lines
1.2 KiB
HTML
<!doctype html>
|
||
<html lang="de">
|
||
<head>
|
||
<meta charset="utf-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||
<meta name="csrf" content="{{ csrf }}">
|
||
<title>{% block title %}checkbot{% endblock %} – checkbot</title>
|
||
<link rel="stylesheet" href="/static/app.css">
|
||
<script src="/static/app.js" defer></script>
|
||
</head>
|
||
<body>
|
||
<header class="topbar">
|
||
<div class="topbar-inner">
|
||
<a class="brand" href="/">checkbot</a>
|
||
{% if user %}
|
||
<nav class="nav" aria-label="Hauptnavigation">
|
||
<a href="/">Dashboard</a>
|
||
{% if user.is_admin %}
|
||
<a href="/setup">Setup</a>
|
||
<a href="/settings/checkmk">Checkmk</a>
|
||
<a href="/settings/ollama">Ollama</a>
|
||
<a href="/users">Benutzer</a>
|
||
<a href="/audit">Audit</a>
|
||
{% endif %}
|
||
<a href="/account">Konto</a>
|
||
<form method="post" action="/logout" class="inline">
|
||
{{ csrf_input }}
|
||
<button type="submit" class="link">Abmelden ({{ user.username }})</button>
|
||
</form>
|
||
</nav>
|
||
{% endif %}
|
||
</div>
|
||
</header>
|
||
<main class="container">
|
||
{% for f in flashes %}
|
||
<div class="flash {{ f.kind }}" role="{{ 'alert' if f.kind == 'error' else 'status' }}">{{ f.text }}</div>
|
||
{% endfor %}
|
||
{% block content %}{% endblock %}
|
||
</main>
|
||
</body>
|
||
</html>
|