aboutsummaryrefslogtreecommitdiff
path: root/templates/pages/single-recipe.html
diff options
context:
space:
mode:
authorJJ <nicetry@noemail.com>2025-03-30 20:56:01 +0100
committerJJ <nicetry@noemail.com>2025-03-30 20:56:01 +0100
commitd518beb637e7c2776d84e87c63cc201c101ca89c (patch)
treeabbfc7933285f829a23afeae09655e5d2106849b /templates/pages/single-recipe.html
parentaa931dddf30700b6458a269389291b632a848ccb (diff)
styling, sub instructions
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 }}"