aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--themes/alps/message.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/themes/alps/message.html b/themes/alps/message.html
index c92d5ac..5d5f64b 100644
--- a/themes/alps/message.html
+++ b/themes/alps/message.html
@@ -178,7 +178,9 @@
{{ $html := .Message.HTMLPart }}
{{ $text := .Message.TextPart }}
<div class="tabs">
- {{ if and $html (ne $html.PathString $text.PathString) }}
+ {{ if and $html $text }}
+ {{ if ne $html.PathString $text.PathString }}
+ {{/* https://github.com/golang/go/issues/31103 */}}
<a
href="?part={{.Message.TextPart.PathString}}"
{{ if eq $text.PathString .Part.PathString }}
@@ -192,6 +194,7 @@
{{ end }}
>HTML</a>
{{ end }}
+ {{ end }}
</div>
{{if .View}}
{{.View}}