all repos — honk @ cf9b3f76bfaed7e0ccf32fa573526dda19f2db9f

my fork of honk

views/honk.html (view raw)

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