diff options
author | Simon Ser <contact@emersion.fr> | 2019-12-03 19:48:28 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2019-12-03 19:49:04 +0100 |
commit | 8de93c50d2cf2144cfd3050cf7970a4ee9860bf4 (patch) | |
tree | bf161d7df1d4c73a7cdb2c2f365c5d0ca91f9b4c /public/message.html | |
parent | 6344806755202babab99564bee362d9e5e238185 (diff) | |
download | alps-8de93c50d2cf2144cfd3050cf7970a4ee9860bf4.tar.gz alps-8de93c50d2cf2144cfd3050cf7970a4ee9860bf4.zip |
Add basic pagination to message list
References: https://todo.sr.ht/~sircmpwn/koushin/22
Diffstat (limited to 'public/message.html')
-rw-r--r-- | public/message.html | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/public/message.html b/public/message.html index 2e1a308..5c18bd0 100644 --- a/public/message.html +++ b/public/message.html @@ -6,7 +6,13 @@ <a href="/mailbox/{{.Mailbox.Name | pathescape}}">Back</a> </p> -<h2>{{.Message.Envelope.Subject}}</h2> +<h2> + {{if .Message.Envelope.Subject}} + {{.Message.Envelope.Subject}} + {{else}} + (No subject) + {{end}} +</h2> {{define "message-part-tree"}} {{/* nested templates can't access the parent's context */}} |