modified: db.py modified: routes/journal_routes.py modified: static/css/style.css modified: static/js/main.js modified: templates/base.html modified: templates/day.html modified: templates/future.html modified: templates/index.html new file: templates/monat.html modified: templates/week.html
54 lines
1.9 KiB
HTML
54 lines
1.9 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="de">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>{% block title %}Bullet Journal{% endblock %}</title>
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
|
|
</head>
|
|
<body>
|
|
<header class="topbar">
|
|
<div class="topbar-inner">
|
|
<a href="{{ url_for('journal.index') }}" class="brand">📓 Bullet Journal</a>
|
|
{% if session.get('user_id') %}
|
|
<nav class="nav">
|
|
<a href="{{ url_for('journal.index') }}">Dashboard</a>
|
|
<a href="{{ url_for('journal.week') }}">Wochenübersicht</a>
|
|
<a href="{{ url_for('journal.month') }}">Monatsübersicht</a>
|
|
<a href="{{ url_for('journal.future') }}">Future Log</a>
|
|
<a href="{{ url_for('journal.day', date_str=today_str) }}" class="nav-today">Heute</a>
|
|
{% if session.get('is_admin') %}
|
|
<a href="{{ url_for('admin.dashboard') }}" class="nav-admin">Admin</a>
|
|
{% endif %}
|
|
</nav>
|
|
<div class="user-area">
|
|
<span class="username">{{ session.get('username') }}</span>
|
|
<form method="post" action="{{ url_for('auth.logout') }}" class="inline">
|
|
<button type="submit" class="btn btn-link">Abmelden</button>
|
|
</form>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</header>
|
|
|
|
<main class="container">
|
|
{% with messages = get_flashed_messages(with_categories=true) %}
|
|
{% if messages %}
|
|
{% for category, message in messages %}
|
|
<div class="flash flash-{{ category }}">{{ message }}</div>
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% endwith %}
|
|
|
|
{% block content %}{% endblock %}
|
|
</main>
|
|
|
|
<footer class="footer">
|
|
<p>Bullet Journal © {{ now.year if now else 2026 }}</p>
|
|
</footer>
|
|
|
|
<script src="{{ url_for('static', filename='js/main.js') }}"></script>
|
|
{% block scripts %}{% endblock %}
|
|
</body>
|
|
</html>
|