Project_Manager/app/templates/base.html
2026-06-26 18:21:22 +02:00

41 lines
1.3 KiB
HTML

<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% block title %}Projekt-Hub{% endblock %}</title>
<link rel="stylesheet" href="{{ url_for('static', filename='css/main.css') }}">
</head>
<body>
<nav class="hub-nav">
<a class="hub-brand" href="{{ url_for('index') }}">Projekt<span>Hub</span>
<ul class="hub-nav-list">
{% for mod in nav_modules %}
<li><a href="{{ url_for(mod.endpoint) }}">{{ mod.icon }} {{ mod.label }}</a></li>
{% endfor %}
</ul>
<div class="hub-nav-auth">
{% if current_user.is_authenticated %}
<span class="hub-user">{{ current_user.email }}</span>
<a href="{{ url_for('auth.logout') }}">Abmelden</a>
{% endif %}
</div>
</nav>
<main class="hub-main">
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
<div class="flashes">
{% for category, message in messages %}
<div class="flash flash-{{ category }}">{{ message }}</div>
{% endfor %}
</div>
{% endif %}
{% endwith %}
{% block content %}{% endblock %}
</main>
<script src="{{ url_for('static', filename='js/app.js') }}" defer></script>
</body>
</html>