all repos — honk @ a8984000538dd76de12f4ea99eb4c5a0db7067c5

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>