back to desc for alt

This commit is contained in:
Ted Unangst 2019-09-09 14:09:50 -04:00
parent 5652df819f
commit d408adef34
1 changed files with 4 additions and 4 deletions

View File

@ -2,9 +2,9 @@
{{ $bonkcsrf := .BonkCSRF }} {{ $bonkcsrf := .BonkCSRF }}
{{ with .Honk }} {{ with .Honk }}
<header> <header>
<img alt="avatar" src="/a?a={{ .Honker}}"> <img alt="" src="/a?a={{ .Honker}}">
{{ if .Oonker }} {{ if .Oonker }}
<img alt="avatar" src="/a?a={{ .Oonker}}"> <img alt="" src="/a?a={{ .Oonker}}">
{{ end }} {{ end }}
<p> <p>
{{ if $bonkcsrf }} {{ if $bonkcsrf }}
@ -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 }}" alt="{{ .Name }}"></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 }}" alt="{{ .Name }}"></a> <p><a href="{{ .URL }}"><img src="{{ .URL }}" title="{{ .Desc }}" alt="{{ .Desc }}"></a>
{{ end }} {{ end }}
{{ end }} {{ end }}
{{ end }} {{ end }}