aboutsummaryrefslogtreecommitdiff
path: root/templates/pages/single-recipe.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/pages/single-recipe.html')
-rw-r--r--templates/pages/single-recipe.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/templates/pages/single-recipe.html b/templates/pages/single-recipe.html
index 35c03c0..d8c334d 100644
--- a/templates/pages/single-recipe.html
+++ b/templates/pages/single-recipe.html
@@ -12,11 +12,23 @@ endblock %} {% block content %}
{% endfor %}
</ul>
<h2>Instructions</h2>
+ {% if single_recipe.has_subsections %}
+ {% for instruction in single_recipe.instructions %}
+ <h3>{{ instruction.n }}</h3>
+ <ul>
+ {% for i in instruction.i %}
+ <li>{{ i }}</li>
+ {% endfor %}
+ </ul>
+ {% endfor %}
+ {% else %}
<ul>
{% for instruction in single_recipe.instructions %}
<li>{{ instruction }}</li>
{% endfor %}
</ul>
+ {% endif %}
+
</article>
<button
hx-delete="/recipes/delete/{{ single_recipe._id }}"