From 01d97189d245300d65ca31d650dd868d1d1fc0d8 Mon Sep 17 00:00:00 2001 From: xengineering Date: Sun, 7 Apr 2024 11:56:20 +0200 Subject: view: Show ingredients on read page --- view/html/recipe.html | 1 + 1 file changed, 1 insertion(+) (limited to 'view') diff --git a/view/html/recipe.html b/view/html/recipe.html index fea32a5..3d9ab63 100644 --- a/view/html/recipe.html +++ b/view/html/recipe.html @@ -17,6 +17,7 @@

{{.Notes}}

{{end}}{{range .Steps}}

{{.Text}}

+

{{range $i, $el := .Ingredients}}{{if $i}}, {{end}}{{if ne $el.Amount ""}}{{$el.Amount}} {{end}}{{if ne $el.Unit ""}}{{$el.Unit}} {{end}}{{$el.Type}}{{end}}

{{end}} {{ template "footer" }} -- cgit v1.2.3-70-g09d2