From 06293b48bb1288348e36dceb779cc06f31b0ba8d Mon Sep 17 00:00:00 2001 From: xengineering Date: Wed, 6 Mar 2024 20:53:38 +0100 Subject: view: Display message in case of no recipes --- view/html/recipes.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'view') diff --git a/view/html/recipes.html b/view/html/recipes.html index dc072a1..c0a0719 100644 --- a/view/html/recipes.html +++ b/view/html/recipes.html @@ -8,12 +8,13 @@
-

Here are the available recipes 😋🍳🍔🍕🥘

+

+{{if ne (len .) 0}}

- + {{else}} +

No recipes available.

{{end}}
{{ template "footer" }} -- cgit v1.2.3-70-g09d2