From c9f1576b244edcef1900fedcf9eba73993e3b70e Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Wed, 15 Jul 2020 18:05:12 +0200 Subject: [PATCH] several recipe view improvements --- cookbook/templates/recipe_view.html | 44 ++++++++++++++--------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/cookbook/templates/recipe_view.html b/cookbook/templates/recipe_view.html index dc7fbc1ef..9afa89318 100644 --- a/cookbook/templates/recipe_view.html +++ b/cookbook/templates/recipe_view.html @@ -218,9 +218,11 @@ {% endif %} -
-

{% trans 'Instructions' %}

-
+
+
+

{% trans 'Instructions' %}

+
+
{% for s in recipe.steps.all %} @@ -229,25 +231,23 @@ {% if recipe.steps.all|length > 1 %}
-
-
-
- {% if s.type == 'TEXT' %} - - {% elif s.type == 'TIME' %} - - {% endif %} - {% if s.name %}{{ s.name }}{% else %}{% trans 'Step' %} - {{ forloop.counter }}{% endif %} - {% if s.time != 0 %} - - {{ s.time }} {% trans 'Minutes' %} - {% endif %} -
-
- -
+
+
+ {% if s.type == 'TEXT' %} + + {% elif s.type == 'TIME' %} + + {% endif %} + {% if s.name %}{{ s.name }}{% else %}{% trans 'Step' %} + {{ forloop.counter }}{% endif %} + {% if s.time != 0 %} + - {{ s.time }} {% trans 'Minutes' %} + {% endif %} +
+
+