From ea54de7d32e6b576ccfb430e7e57811b7c4587fe Mon Sep 17 00:00:00 2001 From: xengineering Date: Sun, 17 Sep 2023 11:07:08 +0200 Subject: 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. --- data/templates/footer.html | 4 --- data/templates/head.html | 9 ------ data/templates/index.html | 49 ----------------------------- data/templates/recipe.html | 43 ------------------------- data/templates/recipe_confirm_deletion.html | 25 --------------- data/templates/recipe_edit.html | 26 --------------- 6 files changed, 156 deletions(-) delete mode 100644 data/templates/footer.html delete mode 100644 data/templates/head.html delete mode 100644 data/templates/index.html delete mode 100644 data/templates/recipe.html delete mode 100644 data/templates/recipe_confirm_deletion.html delete mode 100644 data/templates/recipe_edit.html (limited to 'data/templates') diff --git a/data/templates/footer.html b/data/templates/footer.html deleted file mode 100644 index 1b5bf15..0000000 --- a/data/templates/footer.html +++ /dev/null @@ -1,4 +0,0 @@ - diff --git a/data/templates/head.html b/data/templates/head.html deleted file mode 100644 index 33f0c6d..0000000 --- a/data/templates/head.html +++ /dev/null @@ -1,9 +0,0 @@ - - - Recipes - - - - - - diff --git a/data/templates/index.html b/data/templates/index.html deleted file mode 100644 index 0b97187..0000000 --- a/data/templates/index.html +++ /dev/null @@ -1,49 +0,0 @@ - - - - - {{ template "head.html" }} - - - -
- -

Recipes

-
- -
-

Here are the available recipes 😋🍳🍔🍕🥘

- - - - {{ template "footer.html" }} - -
- - - - - 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 @@ - - - - - {{ template "head.html" }} - - - -
- -

{{.Recipe.Title}}

-
- -
-

For {{.Recipe.Portions}} portions you will need these ingredients:

- - - - {{if ne .Recipe.Url ""}} -

Use this link to go to the original recipe.

- {{end}} - - {{range .Recipe.Steps}} -
-

{{.Text}}

-

{{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}}

-
- {{end}} - - - - - {{ template "footer.html" }} -
- - diff --git a/data/templates/recipe_confirm_deletion.html b/data/templates/recipe_confirm_deletion.html deleted file mode 100644 index 17c4da8..0000000 --- a/data/templates/recipe_confirm_deletion.html +++ /dev/null @@ -1,25 +0,0 @@ - - - - - {{ template "head.html" }} - - -
- -

Delete a recipe

-
- -
-

Do you really want to delete this recipe?

-
- - -
- {{ template "footer.html" }} -
- - diff --git a/data/templates/recipe_edit.html b/data/templates/recipe_edit.html deleted file mode 100644 index 6ef41f8..0000000 --- a/data/templates/recipe_edit.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - {{ template "head.html" }} - - -
- -

{{.Title}}

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