Add day navigation to daily log view

Updated the daily log route and template to support viewing logs for previous and next days using an offset parameter. The default redirect now points to the daily log instead of the dashboard. The daily_log.html template includes navigation buttons for moving between days.
This commit is contained in:
2025-08-07 20:49:10 +02:00
parent 4b068063ed
commit e3119a69fc
3 changed files with 33 additions and 7 deletions

2
app.py
View File

@@ -34,7 +34,7 @@ app.register_blueprint(add_meal_bp)
def default_return(next_page: Optional[str] = None):
return redirect(url_for("user.dashboard"))
return redirect(url_for("user.daily_log"))
if next_page:
return redirect(next_page)
if current_user.is_admin: