From 43ed47bf3d51e25d3195870241bbe6619c43e459 Mon Sep 17 00:00:00 2001
From: xengineering
Date: Thu, 24 Oct 2024 20:24:46 +0200
Subject: view: Display URL content on recipe page
This makes the recipe page less pretty. Nevertheless the URL is more
visible to the user which makes it more likely that errors in the URL
are detected.
This change is based on user feedback. Invalid URLs were added which led
effectively to data loss.
---
view/html/recipe.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/view/html/recipe.html b/view/html/recipe.html
index cf30d06..b2fe773 100644
--- a/view/html/recipe.html
+++ b/view/html/recipe.html
@@ -14,7 +14,7 @@
{{ if ne .Recipe.Notes "" }}
{{.Recipe.Notes}}
{{end}}{{ if ne .Recipe.Portions "" }}
Portions: {{.Recipe.Portions}}
{{end}}{{ if ne .Recipe.Url "" }}
- Original recipe: link
{{end}}{{if .HasIngredients}}
+ Original recipe: {{.Recipe.Url}}
{{end}}{{if .HasIngredients}}
Ingredient summary:
{{range .Summary}}
- {{.}}
{{end}}
--
cgit v1.2.3-70-g09d2