diff options
author | xengineering <me@xengineering.eu> | 2024-01-08 19:27:47 +0100 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2024-01-08 19:33:24 +0100 |
commit | 43e7bb10eaade56a9444ec089aa3102218231868 (patch) | |
tree | 259e52b1978cfdf7ff979b0614c545d24d957c88 /view | |
parent | c6d2e9dadcd08cdf82aab507d9d4d8d58574df20 (diff) | |
download | ceres-43e7bb10eaade56a9444ec089aa3102218231868.tar ceres-43e7bb10eaade56a9444ec089aa3102218231868.tar.zst ceres-43e7bb10eaade56a9444ec089aa3102218231868.zip |
Implement recipe page
Diffstat (limited to 'view')
-rw-r--r-- | view/html/recipe.html | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/view/html/recipe.html b/view/html/recipe.html new file mode 100644 index 0000000..acf346f --- /dev/null +++ b/view/html/recipe.html @@ -0,0 +1,20 @@ +{{define "recipe"}} +<html> + {{ template "head" }} + <header> + <nav> + <a href="/">HOME</a> + </nav> + <h1>{{.Title}}</h1> + </header> + <body> + <main> + <p>Portions: {{.Portions}}</p> + <p><a href="{{.URL}}">original recipe</a></p> + <p>{{.Notes}}</p> + <a href="/recipes/{{.Id}}/edit"><button>edit</button></a> + </main> + {{ template "footer" }} + </body> +</html> +{{end}} |