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 }}
{{ with .Honk }}
<header>
<img alt="avatar" src="/a?a={{ .Honker}}">
<img alt="" src="/a?a={{ .Honker}}">
{{ if .Oonker }}
<img alt="avatar" src="/a?a={{ .Oonker}}">
<img alt="" src="/a?a={{ .Oonker}}">
{{ end }}
<p>
{{ if $bonkcsrf }}
@ -47,7 +47,7 @@ in reply to: <a href="{{ .RID }}" rel=noreferrer>{{ .RID }}</a>
{{ if eq .Media "text/plain" }}
<p><a href="/d/{{ .XID }}">Attachment: {{ .Name }}</a>
{{ 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 }}
{{ else }}
{{ if .XID }}
@ -56,7 +56,7 @@ in reply to: <a href="{{ .RID }}" rel=noreferrer>{{ .RID }}</a>
{{ if eq .Media "video/mp4" }}
<p><a href="{{ .URL }}"><video controls src="{{ .URL }}">{{ .Name }}</video></a>
{{ 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 }}