You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Shopping list shows recipe file names instead of their titles #624
The "Selected recipes" panel of the shopping list names each recipe by its file name, even when the recipe declares a title. With the seed, adding lamb-chops.cook (title: Sicilian-style Scottadito Lamb Chops) or Risotto.cook (title: Classic Risotto alla Milanese) shows lamb-chops and Risotto. The recipe's own page, the index cards and the menu page all show the title, so the list is the odd one out.
The same goes for menus, the recipes nested in a menu entry, and the sub-recipes listed under an entry (ref.split('/').pop() in templates/shopping_list.html).
Where it came from:7700032 (#318, "migrate shopping list to new format with checked state"). Before it, the recipe page posted name: '{{ recipe.name }}' (the title) and the list stored it. The .shopping-list format stores no name, so since #318GET /api/shopping_list/items derives name from the path with recipe_display_name() (Breakfast/Easy Pancakes.cook → Easy Pancakes).
Expected: each entry, nested recipe and sub-recipe shows the title its file declares, falling back to the file name when it has none or can't be read.
Activity