56 lines
3.0 KiB
HTML
56 lines
3.0 KiB
HTML
<!doctype html>
|
|
<html lang="de" data-theme="auto">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>{% block title %}Nouri{% endblock %}</title>
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/styles.css') }}">
|
|
<script defer src="{{ url_for('static', filename='js/theme.js') }}"></script>
|
|
</head>
|
|
<body>
|
|
<div class="page-shell">
|
|
<header class="site-header">
|
|
<a class="brand" href="{{ url_for('main.dashboard') }}">
|
|
<span class="brand-mark">N</span>
|
|
<span>
|
|
<strong>Nouri</strong>
|
|
<small>freundliches Essensgedaechtnis</small>
|
|
</span>
|
|
</a>
|
|
{% if g.user %}
|
|
<nav class="site-nav">
|
|
<a href="{{ url_for('main.dashboard') }}" class="{{ 'active' if request.endpoint == 'main.dashboard' else '' }}">Heute</a>
|
|
<a href="{{ url_for('main.item_list', kind='food') }}" class="{{ 'active' if request.endpoint == 'main.item_list' and request.view_args and request.view_args.get('kind') == 'food' else '' }}">Lebensmittel</a>
|
|
<a href="{{ url_for('main.item_list', kind='meal') }}" class="{{ 'active' if request.endpoint == 'main.item_list' and request.view_args and request.view_args.get('kind') == 'meal' else '' }}">Mahlzeiten</a>
|
|
<a href="{{ url_for('main.shopping_list') }}" class="{{ 'active' if request.endpoint == 'main.shopping_list' else '' }}">Einkaufsliste</a>
|
|
<a href="{{ url_for('main.home_view') }}" class="{{ 'active' if request.endpoint == 'main.home_view' else '' }}">Zuhause</a>
|
|
<a href="{{ url_for('main.planner') }}" class="{{ 'active' if request.endpoint == 'main.planner' else '' }}">Wochenplan</a>
|
|
<a href="{{ url_for('main.archive_view') }}" class="{{ 'active' if request.endpoint == 'main.archive_view' else '' }}">Archiv</a>
|
|
</nav>
|
|
<div class="header-actions">
|
|
<button class="theme-toggle" type="button" data-theme-toggle>Modus</button>
|
|
<form method="post" action="{{ url_for('auth.logout') }}">
|
|
{{ csrf_input() }}
|
|
<button class="ghost-button" type="submit">Abmelden</button>
|
|
</form>
|
|
</div>
|
|
{% endif %}
|
|
</header>
|
|
|
|
<main class="content">
|
|
{% with messages = get_flashed_messages(with_categories=true) %}
|
|
{% if messages %}
|
|
<section class="flash-stack" aria-label="Hinweise">
|
|
{% for category, message in messages %}
|
|
<div class="flash flash-{{ category }}">{{ message }}</div>
|
|
{% endfor %}
|
|
</section>
|
|
{% endif %}
|
|
{% endwith %}
|
|
|
|
{% block content %}{% endblock %}
|
|
</main>
|
|
</div>
|
|
</body>
|
|
</html>
|