diff options
author | xengineering <me@xengineering.eu> | 2023-09-17 11:07:08 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2023-09-17 11:07:08 +0200 |
commit | ea54de7d32e6b576ccfb430e7e57811b7c4587fe (patch) | |
tree | 4182e9c401e571adb53f1d6cbe2b072c171c87b2 /data/templates/recipe.html | |
parent | d0f58c4812c8b5821e9ed15806fae44f7b1fb095 (diff) | |
download | ceres-ea54de7d32e6b576ccfb430e7e57811b7c4587fe.tar ceres-ea54de7d32e6b576ccfb430e7e57811b7c4587fe.tar.zst ceres-ea54de7d32e6b576ccfb430e7e57811b7c4587fe.zip |
Remove complete implementation
Restarting from scratch seems to be the fastest approach to switch to
sqlite and get rid of some other structural mistakes from the past.
Diffstat (limited to 'data/templates/recipe.html')
-rw-r--r-- | data/templates/recipe.html | 43 |
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> |