From ae02e6de777d2582bb3e52b27fe3092b490d95d3 Mon Sep 17 00:00:00 2001 From: Emi Vasilek Date: Wed, 1 Nov 2023 23:52:41 +0100 Subject: [PATCH] templates: better handling of recipes with parts, backlink --- templates/recipe.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/templates/recipe.html b/templates/recipe.html index bda1b65..bebd15c 100644 --- a/templates/recipe.html +++ b/templates/recipe.html @@ -6,16 +6,19 @@ + back

{{recipe.title}}

{% for part in recipe.parts %} -

Ingredients

+

{{part.title}}

+

Ingredients

{% for ing in part.ingredients %}
  • {{ing.amount}} {{ing.unit.name}} {{ ing.name }}
  • {% endfor %} -

    Steps

    +

    Steps

    {% for step in part.steps %}
  • {{ step }}
  • {% endfor %} +
    {% endfor %} \ No newline at end of file