all repos — honk @ feed6cd9157673e741c1d421053970f70eb42acd

my fork of honk

maybe don't need links for already shown images
Ted Unangst tedu@tedunangst.com
Tue, 10 Sep 2019 15:40:59 -0400
commit

feed6cd9157673e741c1d421053970f70eb42acd

parent

4c029becd5c6f0d50f121adad810146ba0c612d0

1 files changed, 3 insertions(+), 3 deletions(-)

jump to
M views/honk.htmlviews/honk.html

@@ -47,16 +47,16 @@ {{ if .Local }}

{{ 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="{{ .Desc }}"></a> +<p><img src="/d/{{ .XID }}" title="{{ .Desc }}" alt="{{ .Desc }}"> {{ end }} {{ else }} {{ if .XID }} <p><a href="{{ .URL }}">External Attachment: {{ .Name }}</a> {{ else }} {{ if eq .Media "video/mp4" }} -<p><a href="{{ .URL }}"><video controls src="{{ .URL }}">{{ .Name }}</video></a> +<p><video controls src="{{ .URL }}">{{ .Name }}</video> {{ else }} -<p><a href="{{ .URL }}"><img src="{{ .URL }}" title="{{ .Desc }}" alt="{{ .Desc }}"></a> +<p><img src="{{ .URL }}" title="{{ .Desc }}" alt="{{ .Desc }}"> {{ end }} {{ end }} {{ end }}