all repos — honk @ 22409ad9a9390dd542e97944a0760261640d37d6

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