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: <a href="/t?c={{ .Convoy }}">{{ .Convoy }}</a>
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 .BonkCSRF (not (eq .Honk.What "zonked")) }}
29<p>
30<div>
31<button onclick="bonk(this, '{{ .Honk.XID }}'); return false;"><a href="/bonk">bonk</a></button>
32<button onclick="showhonkform('{{ .Honk.XID }}', '{{ .Honk.Username }}'); return false;"><a href="/newhonk">tonk</a></button>
33<form class="inlineform" action="/zonkit" method="POST">
34<input type="hidden" name="CSRF" value="{{ .BonkCSRF }}">
35<input type="hidden" name="honk" value="{{ .Honk.XID }}">
36<input type="hidden" name="honker" value="{{ .Honk.Honker }}">
37<input type="hidden" name="convoy" value="{{ .Honk.Convoy }}">
38<select name="wherefore">
39<option>this honk</option>
40<option>this honker</option>
41<option>this convoy</option>
42</select>
43<button onclick="zonkit(this); return false;"><a href="/zonkit">zonk</a></button>
44</form>
45</div>
46<p>
47{{ end }}
48</div>