aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorнаб <nabijaczleweli@nabijaczleweli.xyz>2020-07-13 15:48:31 +0200
committerSimon Ser <contact@emersion.fr>2020-07-13 17:07:18 +0200
commitd60aca0e5c19de2e250f2166957640db0ad3d24d (patch)
treebed9a00c621c8fcde93c985debd77d830f375b02 /plugins
parent92b30161962579fdd3bc133d8ccba03e4e1420fb (diff)
downloadalps-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
Diffstat (limited to 'plugins')
-rw-r--r--plugins/base/public/mailbox.html2
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}}