all repos — honk @ e0cc48fd6d5ce43fdced313e4ec943bfb9c9bd95

my fork of honk

views/honk.html (view raw)

 1<div class="honk {{ if eq .Honk.What "tonked" }} tonk {{ end }}">
 2{{ with .Honk }}
 3<div class="title"><img alt="avatar" src="/a?a={{ .Honker}}"><p><a href="{{ .Honker }}" rel=noreferrer>{{ .Username }}</a> <span class="clip">{{ .What }} {{ .Date.Format "02 Jan 2006 15:04" }} <a href="{{ .URL }}" rel=noreferrer>{{ .URL }}</a></span></div>
 4<div class="noise"><p>{{ .HTML }}</div>
 5{{ range .Donks }}
 6{{ if eq .Media "text/plain" }}
 7<p><a href="/d/{{ .XID }}">Attachment: {{ .Name }}</a>
 8{{ else }}
 9<p><a href="/d/{{ .XID }}"><img src="/d/{{ .XID }}" title="{{ .URL }}"></a>
10{{ end }}
11{{ end }}
12{{ end }}
13{{ if .Bonk }}
14<p>
15<button onclick="bonk('{{ .Honk.XID }}'); return false;"><a href="/bonk">bonk</a></button>
16<button style="margin-left: 4em;" onclick="showhonkform('{{ .Honk.XID }}', '{{ .Honk.Username }}'); return false;"><a href="/newhonk">tonk</a></button>
17{{ end }}
18</div>