Add tabs for all, own and favourite recipes

- Tabs "Alle", "Eigene Rezepte", "Favoriten" above the recipe list;
  search and tag filters stay within the active tab
- Menu link to own recipes; empty states per tab
- Fix recipe card images rendering portrait instead of 4:3

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Kyle Dammann
2026-10-31 01:45:29 +01:00
co-authored by Claude Opus 5.5
parent c76fd119cf
commit 23adb882bd
6 changed files with 56 additions and 7 deletions
+2 -1
View File
@@ -74,8 +74,9 @@ def recipe_list(request):
page = Paginator(qs, PAGE_SIZE).get_page(request.GET.get("seite"))
tags = Tag.visible_to(request.user)
return render(request, "recipes/list.html", {
"form": form, "page": page, "tags": tags, "active_tag": data.get("tag", ""),
"form": form, "page": page, "tags": tags, "active_tag": data.get("tag", ""), "active_view": view,
"filtered": bool(data.get("q") or data.get("zutat") or data.get("tag") or view),
"only_view": bool(view and not (data.get("q") or data.get("zutat") or data.get("tag"))),
})