all repos — honk @ v0.2.2

my fork of honk

views/honk.html (view raw)

 1<div class="honk {{ .Honk.What }}">
 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">
 5<p>{{ .HTML }}
 6{{ range .Donks }}
 7{{ if eq .Media "text/plain" }}
 8<p><a href="/d/{{ .XID }}">Attachment: {{ .Name }}</a>
 9{{ else }}
10<p><a href="/d/{{ .XID }}"><img src="/d/{{ .XID }}" title="{{ .URL }}"></a>
11{{ end }}
12{{ end }}
13</div>
14{{ end }}
15{{ if and .Bonk (not (eq .Honk.What "zonked")) }}
16<p>
17<button onclick="bonk('{{ .Honk.XID }}'); return false;"><a href="/bonk">bonk</a></button>
18<button onclick="showhonkform('{{ .Honk.XID }}', '{{ .Honk.Username }}'); return false;"><a href="/newhonk">tonk</a></button>
19<button onclick="zonkit('{{ .Honk.XID }}'); return false;"><a href="/zonkit">zonk</a></button>
20{{ end }}
21</div>