diff options
Diffstat (limited to 'view')
-rw-r--r-- | view/html/nav.html | 5 | ||||
-rw-r--r-- | view/html/recipe-confirm-deletion.html | 4 | ||||
-rw-r--r-- | view/html/recipe-edit.html | 4 | ||||
-rw-r--r-- | view/html/recipe.html | 4 | ||||
-rw-r--r-- | view/html/recipes.html | 4 |
5 files changed, 9 insertions, 12 deletions
diff --git a/view/html/nav.html b/view/html/nav.html new file mode 100644 index 0000000..7bc0206 --- /dev/null +++ b/view/html/nav.html @@ -0,0 +1,5 @@ +{{define "nav"}} + <nav> + <a href="/recipes">HOME</a> + </nav> +{{end}} diff --git a/view/html/recipe-confirm-deletion.html b/view/html/recipe-confirm-deletion.html index 7e839cb..74d6ede 100644 --- a/view/html/recipe-confirm-deletion.html +++ b/view/html/recipe-confirm-deletion.html @@ -3,9 +3,7 @@ <html> {{ template "head" }} <header> - <nav> - <a href="/recipes">HOME</a> - </nav> + {{ template "nav" }} <h1>Delete a recipe</h1> </header> <body> diff --git a/view/html/recipe-edit.html b/view/html/recipe-edit.html index d7d9b45..125d876 100644 --- a/view/html/recipe-edit.html +++ b/view/html/recipe-edit.html @@ -3,9 +3,7 @@ <html> {{ template "head" }} <header> - <nav> - <a href="/recipes">HOME</a> - </nav> + {{ template "nav" }} <h1>Recipe editor</h1> </header> <body> diff --git a/view/html/recipe.html b/view/html/recipe.html index 7b1a70d..04230ea 100644 --- a/view/html/recipe.html +++ b/view/html/recipe.html @@ -3,9 +3,7 @@ <html> {{ template "head" }} <header> - <nav> - <a href="/recipes">HOME</a> - </nav> + {{ template "nav" }} <h1>{{.Title}}</h1> </header> <body> diff --git a/view/html/recipes.html b/view/html/recipes.html index ba7cd62..b5bf786 100644 --- a/view/html/recipes.html +++ b/view/html/recipes.html @@ -3,9 +3,7 @@ <html> {{ template "head" }} <header> - <nav> - <a href="/recipes">HOME</a> - </nav> + {{ template "nav" }} <h1>Recipe overview</h1> </header> <body> |