use alt and title for img

This commit is contained in:
Ted Unangst 2019-09-09 12:12:24 -04:00
parent ef2d89d7c9
commit 5a38dc76bc
1 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ 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 }}"></a> <p><a href="/d/{{ .XID }}"><img src="/d/{{ .XID }}" title="{{ .Desc }}" alt="{{ .Desc }}"></a>
{{ end }} {{ end }}
{{ else }} {{ else }}
{{ if .XID }} {{ if .XID }}
@ -56,7 +56,7 @@ in reply to: <a href="{{ .RID }}" rel=noreferrer>{{ .RID }}</a>
{{ if eq .Media "video/mp4" }} {{ if eq .Media "video/mp4" }}
<p><a href="{{ .URL }}"><video controls src="{{ .URL }}">{{ .Name }}</video></a> <p><a href="{{ .URL }}"><video controls src="{{ .URL }}">{{ .Name }}</video></a>
{{ else }} {{ else }}
<p><a href="{{ .URL }}"><img src="{{ .URL }}" title="{{ .Desc }}"></a> <p><a href="{{ .URL }}"><img src="{{ .URL }}" title="{{ .Desc }}" alt="{{ .Desc }}"></a>
{{ end }} {{ end }}
{{ end }} {{ end }}
{{ end }} {{ end }}