summaryrefslogtreecommitdiff
path: root/data/templates/recipe.html
diff options
context:
space:
mode:
Diffstat (limited to 'data/templates/recipe.html')
-rw-r--r--data/templates/recipe.html43
1 files changed, 0 insertions, 43 deletions
diff --git a/data/templates/recipe.html b/data/templates/recipe.html
deleted file mode 100644
index f95ace6..0000000
--- a/data/templates/recipe.html
+++ /dev/null
@@ -1,43 +0,0 @@
-<!DOCTYPE html>
-
-<html>
-
- {{ template "head.html" }}
-
- <body>
-
- <header>
- <nav>
- <a href="/index.html">HOME</a>
- <a href="/add_recipes">add recipe</a>
- </nav>
- <h1>{{.Recipe.Title}}</h1>
- </header>
-
- <main>
- <p>For {{.Recipe.Portions}} portions you will need these ingredients:</p>
-
- <ul>
- {{range .Recipe.Steps}}{{range $i, $el := .Ingredients}}
- <li>{{if ne $el.Amount 0.0}}{{$el.Amount}} {{end}}{{if ne $el.Unit ""}}{{$el.Unit}} {{end}}{{$el.Type}}</li>
- {{end}}{{end}}
- </ul>
-
- {{if ne .Recipe.Url ""}}
- <p>Use this <a href="{{.Recipe.Url}}">link</a> to go to the original recipe.</p>
- {{end}}
-
- {{range .Recipe.Steps}}
- <section>
- <p>{{.Text}}</p>
- <p><i>{{range $i, $el := .Ingredients}}{{if $i}}, {{end}}{{if ne $el.Amount 0.0}}{{$el.Amount}} {{end}}{{if ne $el.Unit ""}}{{$el.Unit}} {{end}}{{$el.Type}}{{end}}</i></p>
- </section>
- {{end}}
-
- <a href="/recipe/edit?id={{.Id}}"><button>edit</button></a>
- <a href="/recipe/confirm-deletion?id={{.Id}}"><button style="background-color:red">delete</button></a>
-
- {{ template "footer.html" }}
- </main>
- </body>
-</html>