From 06db7114ed51e69c6d3921b5493d4e29cebfa250 Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Mon, 29 Jun 2020 16:24:41 +0200 Subject: [PATCH] basic view step design --- cookbook/templates/recipe_view.html | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/cookbook/templates/recipe_view.html b/cookbook/templates/recipe_view.html index 5225d717..baee44c1 100644 --- a/cookbook/templates/recipe_view.html +++ b/cookbook/templates/recipe_view.html @@ -212,9 +212,22 @@
{% for s in recipe.steps.all %} - {% if s.instruction %} - {{ s.instruction | markdown | safe }} + {% if recipe.steps.all|length > 1 %} +
+
+ {% trans 'Step' %} {{ forloop.counter }}{% if s.name %} - {{ s.name }}{% endif %} +
+
{% endif %} + +
+
+ {% if s.instruction %} + {{ s.instruction | markdown | safe }} + {% endif %} +
+
+ {% endfor %}