show a little more info for attachments
This commit is contained in:
parent
97e84447c3
commit
0a9cbd2a3d
|
@ -66,15 +66,15 @@ in reply to: <a href="{{ .RID }}" rel=noreferrer>{{ .RID }}</a>
|
||||||
{{ range .Donks }}
|
{{ range .Donks }}
|
||||||
{{ if .Local }}
|
{{ if .Local }}
|
||||||
{{ if eq .Media "text/plain" }}
|
{{ if eq .Media "text/plain" }}
|
||||||
<p><a href="/d/{{ .XID }}">Attachment: {{ .Name }}</a> {{ .Desc }}
|
<p><a href="/d/{{ .XID }}">Attachment: {{ .Name }}</a>{{ if not (eq .Desc .Name) }} {{ .Desc }}{{ end }}
|
||||||
{{ else if eq .Media "application/pdf" }}
|
{{ else if eq .Media "application/pdf" }}
|
||||||
<p><a href="/d/{{ .XID }}">Attachment: {{ .Name }}</a> {{ .Desc }}
|
<p><a href="/d/{{ .XID }}">Attachment: {{ .Name }}</a>{{ if not (eq .Desc .Name) }} {{ .Desc }}{{ end }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<p><img src="/d/{{ .XID }}" title="{{ .Desc }}" alt="{{ .Desc }}">
|
<p><img src="/d/{{ .XID }}" title="{{ .Desc }}" alt="{{ .Desc }}">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ if .XID }}
|
{{ if .XID }}
|
||||||
<p><a href="{{ .URL }}" rel=noreferrer>External Attachment: {{ .Name }}</a>
|
<p><a href="{{ .URL }}" rel=noreferrer>External Attachment: {{ .Name }}</a>{{ if not (eq .Desc .Name) }} {{ .Desc }}{{ end }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ if eq .Media "video/mp4" }}
|
{{ if eq .Media "video/mp4" }}
|
||||||
<p><video controls src="{{ .URL }}">{{ .Name }}</video>
|
<p><video controls src="{{ .URL }}">{{ .Name }}</video>
|
||||||
|
|
Loading…
Reference in New Issue