summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2024-10-24 20:24:46 +0200
committerxengineering <me@xengineering.eu>2024-10-24 20:24:46 +0200
commit43ed47bf3d51e25d3195870241bbe6619c43e459 (patch)
tree6839d694ea0276ef05aeed91a9b92fed1aab90ae
parent9422e8194245c9cdbfa09b38c20173964349e2a2 (diff)
downloadceres-43ed47bf3d51e25d3195870241bbe6619c43e459.tar
ceres-43ed47bf3d51e25d3195870241bbe6619c43e459.tar.zst
ceres-43ed47bf3d51e25d3195870241bbe6619c43e459.zip
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.
-rw-r--r--view/html/recipe.html2
1 files changed, 1 insertions, 1 deletions
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 @@
</p>{{ if ne .Recipe.Notes "" }}
<p class="notice" style="white-space: pre-line;">{{.Recipe.Notes}}</p>{{end}}{{ if ne .Recipe.Portions "" }}
<p><i>Portions:</i> {{.Recipe.Portions}}</p>{{end}}{{ if ne .Recipe.Url "" }}
- <p><i>Original recipe:</i> <a href="{{.Recipe.Url}}">link</a></p>{{end}}{{if .HasIngredients}}
+ <p><i>Original recipe:</i> <a href="{{.Recipe.Url}}">{{.Recipe.Url}}</a></p>{{end}}{{if .HasIngredients}}
<p><i>Ingredient summary:</i></p>
<ul>{{range .Summary}}
<li>{{.}}</li>{{end}}