all repos — honk @ d3f4105ee7014285b3b96a50bfbe817210fa9d54

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<p><a href="/d/{{ .XID }}"><img src="/d/{{ .XID }}" title="{{ .URL }}"></a>
 7{{ end }}
 8{{ end }}
 9{{ if .Bonk }}
10<p>
11<button onclick="bonk('{{ .Honk.XID }}'); return false;"><a href="/bonk">bonk</a></button>
12<button style="margin-left: 4em;" onclick="showhonkform('{{ .Honk.XID }}', '{{ .Honk.Username }}'); return false;"><a href="/newhonk">tonk</a></button>
13{{ end }}
14</div>