diff options
author | наб <nabijaczleweli@nabijaczleweli.xyz> | 2020-07-13 15:48:31 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-07-13 17:07:18 +0200 |
commit | d60aca0e5c19de2e250f2166957640db0ad3d24d (patch) | |
tree | bed9a00c621c8fcde93c985debd77d830f375b02 | |
parent | 92b30161962579fdd3bc133d8ccba03e4e1420fb (diff) | |
download | alps-d60aca0e5c19de2e250f2166957640db0ad3d24d.tar.gz alps-d60aca0e5c19de2e250f2166957640db0ad3d24d.zip |
base HTML: fix nil on emails without a text part
P.a. to 50e131244ad78fd1e4c216770ff69471a6fcb03b which solved
https://todo.sr.ht/~emersion/alps/100
Closes: https://todo.sr.ht/~emersion/alps/102
-rw-r--r-- | plugins/base/public/mailbox.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/base/public/mailbox.html b/plugins/base/public/mailbox.html index ff2e3a9..51a78d8 100644 --- a/plugins/base/public/mailbox.html +++ b/plugins/base/public/mailbox.html @@ -27,7 +27,7 @@ <ul> {{range .Messages}} <li> - <a href="{{.TextPart.URL false}}"> + <a href="{{if .TextPart}}{{.TextPart.URL false}}{{else}}{{.URL}}{{end}}"> {{if .Envelope.Subject}} {{.Envelope.Subject}} {{else}} |