From b386d1c2bb0efacea2484b4aa2088c769e048a9c Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 3 Dec 2019 17:52:56 +0100 Subject: Fix mailbox view when empty This fixes the second part of #14. References: https://todo.sr.ht/~sircmpwn/koushin/14 --- public/mailbox.html | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'public/mailbox.html') diff --git a/public/mailbox.html b/public/mailbox.html index d8c7209..e56efcb 100644 --- a/public/mailbox.html +++ b/public/mailbox.html @@ -15,13 +15,17 @@ {{end}} -

Messages:

- +{{if .Messages}} +

Messages:

+ +{{else}} +

Mailbox is empty.

+{{end}} {{template "foot"}} -- cgit v1.2.3-59-g8ed1b