all repos — honk @ f9fb2c73760045569f460dac473454ccfb4ea049

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 .Oonker }}
 7<br>
 8<span style="margin-left: 3em;" class="clip">
 9original: {{ .Oonker }}
10</span>
11{{ else }}
12{{ if .RID }}
13<br>
14<span style="margin-left: 3em;" class="clip">
15in reply to: <a href="{{ .RID }}" rel=noreferrer>{{ .RID }}</a>
16</span>
17{{ end }}
18{{ end }}
19<br>
20<span style="margin-left: 3em;" class="clip">
21convoy: <a href="/t?c={{ .Convoy }}">{{ .Convoy }}</a>
22</span>
23</header>
24<div class="noise">
25<p>{{ .HTML }}
26{{ range .Donks }}
27{{ if eq .Media "text/plain" }}
28<p><a href="/d/{{ .XID }}">Attachment: {{ .Name }}</a>
29{{ else }}
30<p><a href="/d/{{ .XID }}"><img src="/d/{{ .XID }}" title="{{ .URL }}"></a>
31{{ end }}
32{{ end }}
33</div>
34{{ end }}
35{{ if .BonkCSRF }}
36<p>
37<div>
38{{ if not .Honk.Privacy }}
39<button onclick="bonk(this, '{{ .Honk.XID }}'); return false;"><a href="/bonk">bonk</a></button>
40<button onclick="showhonkform('{{ .Honk.XID }}', '{{ .Honk.Username }}'); return false;"><a href="/newhonk">tonk</a></button>
41{{ end }}
42<form class="inlineform" action="/zonkit" method="POST">
43<input type="hidden" name="CSRF" value="{{ .BonkCSRF }}">
44<input type="hidden" name="honk" value="{{ .Honk.XID }}">
45<input type="hidden" name="honker" value="{{ .Honk.Honker }}">
46<input type="hidden" name="convoy" value="{{ .Honk.Convoy }}">
47<select name="wherefore">
48<option>this honk</option>
49<option>this honker</option>
50<option>this convoy</option>
51</select>
52<button onclick="zonkit(this); return false;"><a href="/zonkit">zonk</a></button>
53</form>
54</div>
55<p>
56{{ end }}
57</article>