diff options
author | Eyal Sawady <ecs@d2evs.net> | 2020-06-25 17:36:55 -0400 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-06-29 16:37:41 +0200 |
commit | 50e131244ad78fd1e4c216770ff69471a6fcb03b (patch) | |
tree | 5b80dd544d54980230d4c3cafa244edca3cd8ce3 /themes/alps/mailbox.html | |
parent | 0aff774c5d15fd3f63b8e2e586706b2802e13a4e (diff) | |
download | alps-50e131244ad78fd1e4c216770ff69471a6fcb03b.tar.gz alps-50e131244ad78fd1e4c216770ff69471a6fcb03b.zip |
alps theme: fix nil on emails without a text part
Closes: https://todo.sr.ht/~emersion/alps/100
Diffstat (limited to 'themes/alps/mailbox.html')
-rw-r--r-- | themes/alps/mailbox.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/alps/mailbox.html b/themes/alps/mailbox.html index 93a45ce..0c70385 100644 --- a/themes/alps/mailbox.html +++ b/themes/alps/mailbox.html @@ -47,7 +47,7 @@ {{ end }} </div> <div class="message-list-subject message-list-item {{ if not (.HasFlag "\\Seen") }}message-list-unread{{ end }}"> - <a href="{{.TextPart.URL false}}"> + <a href="{{if .TextPart}}{{.TextPart.URL false}}{{else}}{{.URL}}{{end}}"> {{if .Envelope.Subject}} {{.Envelope.Subject}} {{else}} |