From 0a9cbd2a3d15628572afd30bc7ed98e13d3753ea Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Tue, 26 Nov 2019 02:37:12 -0500 Subject: [PATCH] show a little more info for attachments --- views/honk.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/views/honk.html b/views/honk.html index 805b366..d52523c 100644 --- a/views/honk.html +++ b/views/honk.html @@ -66,15 +66,15 @@ in reply to: {{ .RID }} {{ range .Donks }} {{ if .Local }} {{ if eq .Media "text/plain" }} -

Attachment: {{ .Name }} {{ .Desc }} +

Attachment: {{ .Name }}{{ if not (eq .Desc .Name) }} {{ .Desc }}{{ end }} {{ else if eq .Media "application/pdf" }} -

Attachment: {{ .Name }} {{ .Desc }} +

Attachment: {{ .Name }}{{ if not (eq .Desc .Name) }} {{ .Desc }}{{ end }} {{ else }}

{{ .Desc }} {{ end }} {{ else }} {{ if .XID }} -

External Attachment: {{ .Name }} +

External Attachment: {{ .Name }}{{ if not (eq .Desc .Name) }} {{ .Desc }}{{ end }} {{ else }} {{ if eq .Media "video/mp4" }}