From 605c9e321b442daf1794ae8c045b1efb75617c92 Mon Sep 17 00:00:00 2001 From: xengineering <me@xengineering.eu> Date: Sun, 24 Mar 2024 10:10:10 +0100 Subject: view: Fix position of header tag It should be inside the body tag but used to be before it. --- view/html/recipe-confirm-deletion.html | 8 ++++---- view/html/recipe-edit.html | 8 ++++---- view/html/recipe.html | 8 ++++---- view/html/recipes.html | 8 ++++---- 4 files changed, 16 insertions(+), 16 deletions(-) (limited to 'view') diff --git a/view/html/recipe-confirm-deletion.html b/view/html/recipe-confirm-deletion.html index 8c89663..2bc9429 100644 --- a/view/html/recipe-confirm-deletion.html +++ b/view/html/recipe-confirm-deletion.html @@ -2,11 +2,11 @@ <!DOCTYPE html> <html> {{ template "head" }} - <header> - {{ template "nav" }} - <h1>Delete a recipe</h1> - </header> <body> + <header> + {{ template "nav" }} + <h1>Delete a recipe</h1> + </header> <main> <p>Do you really want to delete this recipe?</p> <button onclick="window.location.href='/recipe/{{.Id}}';">cancel</button> diff --git a/view/html/recipe-edit.html b/view/html/recipe-edit.html index aeb8e59..a6b4a66 100644 --- a/view/html/recipe-edit.html +++ b/view/html/recipe-edit.html @@ -2,11 +2,11 @@ <!DOCTYPE html> <html> {{ template "head" }} - <header> - {{ template "nav" }} - <h1>Recipe editor</h1> - </header> <body> + <header> + {{ template "nav" }} + <h1>Recipe editor</h1> + </header> <main> <form action="/recipe/{{.Id}}"> <input type="hidden" name="id" value="{{.Id}}"> diff --git a/view/html/recipe.html b/view/html/recipe.html index a99690a..4d0eb99 100644 --- a/view/html/recipe.html +++ b/view/html/recipe.html @@ -2,11 +2,11 @@ <!DOCTYPE html> <html> {{ template "head" }} - <header> - {{ template "nav" }} - <h1>{{.Title}}</h1> - </header> <body> + <header> + {{ template "nav" }} + <h1>{{.Title}}</h1> + </header> <main> <p> <button onclick="window.location.href='/recipe/{{.Id}}?view=recipe-edit';">edit</button> diff --git a/view/html/recipes.html b/view/html/recipes.html index c0a0719..89620ed 100644 --- a/view/html/recipes.html +++ b/view/html/recipes.html @@ -2,11 +2,11 @@ <!DOCTYPE html> <html> {{ template "head" }} - <header> - {{ template "nav" }} - <h1>Recipes</h1> - </header> <body> + <header> + {{ template "nav" }} + <h1>Recipes</h1> + </header> <main> <p><button onclick="create('/recipe')">create</button></p> {{if ne (len .) 0}} -- cgit v1.2.3-70-g09d2