all repos — honk @ 647c846225285633b42eb5af0f24ebf921e2780c

my fork of honk

views/honk.html (view raw)

 1<div class="honk {{ .Honk.What }}">
 2{{ with .Honk }}
 3<div class="title">
 4<img alt="avatar" src="/a?a={{ .Honker}}">
 5<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>
 6{{ if .RID }}
 7<br>
 8<span style="margin-left: 4em;" class="clip">
 9in reply to: <a href="{{ .RID }}" rel=noreferrer>{{ .RID }}</a>
10</span>
11{{ end }}
12</div>
13<div class="noise">
14<p>{{ .HTML }}
15{{ range .Donks }}
16{{ if eq .Media "text/plain" }}
17<p><a href="/d/{{ .XID }}">Attachment: {{ .Name }}</a>
18{{ else }}
19<p><a href="/d/{{ .XID }}"><img src="/d/{{ .XID }}" title="{{ .URL }}"></a>
20{{ end }}
21{{ end }}
22</div>
23{{ end }}
24{{ if and .Bonk (not (eq .Honk.What "zonked")) }}
25<p>
26<button onclick="bonk('{{ .Honk.XID }}'); return false;"><a href="/bonk">bonk</a></button>
27<button onclick="showhonkform('{{ .Honk.XID }}', '{{ .Honk.Username }}'); return false;"><a href="/newhonk">tonk</a></button>
28<button onclick="zonkit('{{ .Honk.XID }}'); return false;"><a href="/zonkit">zonk</a></button>
29{{ end }}
30</div>