summaryrefslogtreecommitdiff
path: root/view
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2024-01-17 21:37:52 +0100
committerxengineering <me@xengineering.eu>2024-01-18 19:52:29 +0100
commit325a2740e39b7c7937bfae8b76b092dd900fec9a (patch)
tree64587e601cf279458dd55fb90de0bacd202a2f1d /view
parent34fa1017a697287540d92d8c36ecca988f936f16 (diff)
downloadceres-325a2740e39b7c7937bfae8b76b092dd900fec9a.tar
ceres-325a2740e39b7c7937bfae8b76b092dd900fec9a.tar.zst
ceres-325a2740e39b7c7937bfae8b76b092dd900fec9a.zip
Show steps on recipe page
Diffstat (limited to 'view')
-rw-r--r--view/html/recipe.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/view/html/recipe.html b/view/html/recipe.html
index acf346f..82b426b 100644
--- a/view/html/recipe.html
+++ b/view/html/recipe.html
@@ -12,7 +12,10 @@
<p>Portions: {{.Portions}}</p>
<p><a href="{{.URL}}">original recipe</a></p>
<p>{{.Notes}}</p>
- <a href="/recipes/{{.Id}}/edit"><button>edit</button></a>
+ <a href="/recipes/{{.Id}}/edit"><button>edit</button></a>{{range .Steps}}
+ <section>
+ <p>{{.Text}}</p>
+ </section>{{end}}
</main>
{{ template "footer" }}
</body>