aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--themes/alps/message.html14
1 files changed, 5 insertions, 9 deletions
diff --git a/themes/alps/message.html b/themes/alps/message.html
index ee5aa02..8f67e8d 100644
--- a/themes/alps/message.html
+++ b/themes/alps/message.html
@@ -185,20 +185,17 @@
{{ $text := .Message.TextPart }}
<div class="tabs">
{{/* https://github.com/golang/go/issues/31103 */}}
+ {{ if $text }}
+ {{ if ne $text.MIMEType "text/html" }}
<a
href="?part={{$text.PathString}}"
{{ if eq $text.PathString .Part.PathString }}
class="active"
{{ end }}
- >
- {{ if eq $text.MIMEType "text/html" }}
- HTML
- {{ else }}
- Plain text
+ >Plain text</a>
{{ end }}
- </a>
- {{ if and $html $text }}
- {{ if ne $html.PathString $text.PathString }}
+ {{ end }}
+ {{ if $html }}
<a
href="?part={{$html.PathString}}"
{{ if eq $html.PathString .Part.PathString }}
@@ -206,7 +203,6 @@
{{ end }}
>HTML</a>
{{ end }}
- {{ end }}
<a href="{{.Message.URL}}/raw?plain=1">Raw email</a>
</div>