maybe don't need links for already shown images

This commit is contained in:
Ted Unangst 2019-09-10 15:40:59 -04:00
parent 668358da46
commit e081c594cc
1 changed files with 3 additions and 3 deletions

View File

@ -47,16 +47,16 @@ in reply to: <a href="{{ .RID }}" rel=noreferrer>{{ .RID }}</a>
{{ if eq .Media "text/plain" }} {{ if eq .Media "text/plain" }}
<p><a href="/d/{{ .XID }}">Attachment: {{ .Name }}</a> <p><a href="/d/{{ .XID }}">Attachment: {{ .Name }}</a>
{{ else }} {{ else }}
<p><a href="/d/{{ .XID }}"><img src="/d/{{ .XID }}" title="{{ .Desc }}" alt="{{ .Desc }}"></a> <p><img src="/d/{{ .XID }}" title="{{ .Desc }}" alt="{{ .Desc }}">
{{ end }} {{ end }}
{{ else }} {{ else }}
{{ if .XID }} {{ if .XID }}
<p><a href="{{ .URL }}">External Attachment: {{ .Name }}</a> <p><a href="{{ .URL }}">External Attachment: {{ .Name }}</a>
{{ else }} {{ else }}
{{ if eq .Media "video/mp4" }} {{ if eq .Media "video/mp4" }}
<p><a href="{{ .URL }}"><video controls src="{{ .URL }}">{{ .Name }}</video></a> <p><video controls src="{{ .URL }}">{{ .Name }}</video>
{{ else }} {{ else }}
<p><a href="{{ .URL }}"><img src="{{ .URL }}" title="{{ .Desc }}" alt="{{ .Desc }}"></a> <p><img src="{{ .URL }}" title="{{ .Desc }}" alt="{{ .Desc }}">
{{ end }} {{ end }}
{{ end }} {{ end }}
{{ end }} {{ end }}