44 lines
1.6 KiB
HTML
44 lines
1.6 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>{% block title %}Portal Auth Admin{% endblock %}</title>
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600&family=Outfit:wght@400;600&display=swap" rel="stylesheet">
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
|
|
</head>
|
|
<body>
|
|
<header class="site-header">
|
|
<div class="brand">
|
|
<span class="brand-icon">◈</span>
|
|
<span class="brand-text">Portal Auth</span>
|
|
</div>
|
|
{% if session.get('admin_username') %}
|
|
<nav class="nav">
|
|
<a href="{{ url_for('index') }}">Dashboard</a>
|
|
<a href="{{ url_for('table_view', name='users') }}">Users</a>
|
|
<a href="{{ url_for('table_view', name='sessions') }}">Sessions</a>
|
|
<a href="{{ url_for('table_view', name='auth_logs') }}">Auth logs</a>
|
|
<a href="{{ url_for('table_view', name='api_tokens') }}">API tokens</a>
|
|
<span class="user">{{ session.admin_username }}</span>
|
|
<a href="{{ url_for('logout') }}" class="logout">Log out</a>
|
|
</nav>
|
|
{% endif %}
|
|
</header>
|
|
<main class="main">
|
|
{% with messages = get_flashed_messages(with_categories=true) %}
|
|
{% if messages %}
|
|
<ul class="flashes">
|
|
{% for cat, msg in messages %}
|
|
<li class="flash {{ cat }}">{{ msg }}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
{% endwith %}
|
|
{% block content %}{% endblock %}
|
|
</main>
|
|
</body>
|
|
</html>
|