new file: .env.example

new file:   .gitignore
	new file:   Dockerfile
	new file:   README.md
	new file:   app.py
	new file:   auth.py
	new file:   config.py
	new file:   db.py
	new file:   db_helpers.py
	new file:   docker-compose.yml
	new file:   requirements.txt
	new file:   routes/__init__.py
	new file:   routes/admin_routes.py
	new file:   routes/auth_routes.py
	new file:   routes/journal_routes.py
	new file:   static/css/style.css
	new file:   static/js/main.js
	new file:   templates/admin/dashboard.html
	new file:   templates/admin/users.html
	new file:   templates/base.html
	new file:   templates/day.html
	new file:   templates/future.html
	new file:   templates/index.html
	new file:   templates/login.html
	new file:   templates/week.html
This commit is contained in:
SimolZimol
2026-08-02 20:41:24 +02:00
commit 0e7efe4b74
25 changed files with 1590 additions and 0 deletions

49
templates/index.html Normal file
View File

@@ -0,0 +1,49 @@
{% extends "base.html" %}
{% block title %}Dashboard Bullet Journal{% endblock %}
{% block content %}
<div class="page-head">
<div>
<h1>Dashboard</h1>
<p class="muted">Woche ab {{ monday.strftime('%d.%m.%Y') }}</p>
</div>
<a href="{{ url_for('journal.week') }}" class="btn">Zur Wochenübersicht</a>
</div>
<section class="card">
<h2>Diese Woche</h2>
<div class="week-grid">
{% for day in day_summary %}
<a class="day-card" href="{{ url_for('journal.day', date_str=day.date.strftime('%Y-%m-%d')) }}">
<span class="day-name">{{ day.weekday }}</span>
<span class="day-date">{{ day.date.strftime('%d.%m.') }}</span>
<span class="day-stats">
{% if day.total > 0 %}
<span class="pill open">{{ day.open }} offen</span>
<span class="pill done">{{ day.done }} erledigt</span>
{% else %}
<span class="pill none">leer</span>
{% endif %}
</span>
</a>
{% endfor %}
</div>
</section>
{% if overdue %}
<section class="card">
<h2>Überfällige Aufgaben</h2>
<ul class="note-list">
{% for n in overdue %}
<li class="note-item">
<span class="bullet bullet-{{ n.bullet_type|urlencode }}">{{ n.bullet_type }}</span>
<span class="note-text">{{ n.note_text }}</span>
<span class="note-date">{{ n.note_date.strftime('%d.%m.%Y') }}</span>
<form method="post" action="{{ url_for('journal.mark_done', note_id=n.id) }}" class="inline">
<button class="btn btn-small">Erledigt</button>
</form>
</li>
{% endfor %}
</ul>
</section>
{% endif %}
{% endblock %}