From 04647f3bcd6804c0a94b4c857e34ea0109038d84 Mon Sep 17 00:00:00 2001 From: Teajey <21069848+Teajey@users.noreply.github.com> Date: Mon, 13 May 2024 20:57:25 +1200 Subject: [PATCH] feat: empty list prompts --- templates/foreign_wishlist.gotmpl | 76 +++++++++++++------------ templates/home.gotmpl | 95 +++++++++++++++++-------------- 2 files changed, 94 insertions(+), 77 deletions(-) diff --git a/templates/foreign_wishlist.gotmpl b/templates/foreign_wishlist.gotmpl index fa1c74e..2dff137 100644 --- a/templates/foreign_wishlist.gotmpl +++ b/templates/foreign_wishlist.gotmpl @@ -7,39 +7,45 @@ -

{{.Username}}'s list

-
- - - -
+
+

{{.Username}}'s list

+ {{with .Gifts}} +
+ + + +
+ {{else}} +

They haven't wished for anything. Ask them to think of some stuff!

+ {{end}} +
{{end}} \ No newline at end of file diff --git a/templates/home.gotmpl b/templates/home.gotmpl index e723afc..ddc6b2e 100644 --- a/templates/home.gotmpl +++ b/templates/home.gotmpl @@ -10,48 +10,59 @@
{{.Reference}}
-

Your wishlist

-
- - -
-
- - -
-

Your todo list

-
- - -
+ + +{{end}} {{end}} \ No newline at end of file