From 1975f922a7525fc2725808d55a3c7e07849ae93f Mon Sep 17 00:00:00 2001
From: xengineering <me@xengineering.eu>
Date: Wed, 6 Mar 2024 21:40:16 +0100
Subject: view: Rework /recipe page layout

---
 view/html/recipe.html | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

(limited to 'view')

diff --git a/view/html/recipe.html b/view/html/recipe.html
index 985a4e1..59ed575 100644
--- a/view/html/recipe.html
+++ b/view/html/recipe.html
@@ -7,12 +7,14 @@
 		<h1>{{.Title}}</h1>
 	</header>
 	<body>
-		<main>{{ if ne .Portions "" }}
-			<p>Portions: {{.Portions}}</p>{{end}}{{ if ne .Url "" }}
-			<p><a href="{{.Url}}">original recipe</a></p>{{end}}{{ if ne .Notes "" }}
-			<p style="white-space: pre-line;">{{.Notes}}</p>{{end}}
-			<a href="/recipe/{{.Id}}?view=recipe-edit"><button>edit</button></a>
-			<a href="/recipe/{{.Id}}?view=recipe-confirm-deletion"><button style="background-color:red">delete</button></a>
+		<main>
+			<p>
+				<a class="button" href="/recipe/{{.Id}}?view=recipe-edit">edit</a>
+				<a class="button" style="background-color:red" href="/recipe/{{.Id}}?view=recipe-confirm-deletion">delete</a>
+			</p>{{ if ne .Portions "" }}
+			<p><i>Portions:</i> {{.Portions}}</p>{{end}}{{ if ne .Url "" }}
+			<p><i>Original recipe:</i> <a href="{{.Url}}">link</a></p>{{end}}{{ if ne .Notes "" }}
+			<p class="notice" style="white-space: pre-line;">{{.Notes}}</p>{{end}}
 		</main>
 		{{ template "footer" }}
 		<script src="/static/view/static/ceres.js"></script>
-- 
cgit v1.2.3-70-g09d2