base HTML: fix nil on emails without a text part
P.a. to 50e131244a
which solved
https://todo.sr.ht/~emersion/alps/100
Closes: https://todo.sr.ht/~emersion/alps/102
This commit is contained in:
parent
92b3016196
commit
d60aca0e5c
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@
|
||||||
<ul>
|
<ul>
|
||||||
{{range .Messages}}
|
{{range .Messages}}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{.TextPart.URL false}}">
|
<a href="{{if .TextPart}}{{.TextPart.URL false}}{{else}}{{.URL}}{{end}}">
|
||||||
{{if .Envelope.Subject}}
|
{{if .Envelope.Subject}}
|
||||||
{{.Envelope.Subject}}
|
{{.Envelope.Subject}}
|
||||||
{{else}}
|
{{else}}
|
||||||
|
|
Loading…
Reference in a new issue