all repos — honk @ e44896aaa4dbfea7659dffb88ae3748c40f4e10f

my fork of honk

views/honk.html (view raw)

 1<article class="honk {{ .Honk.What }} {{ and (not .Honk.Public) "limited" }}" data-convoy="{{ .Honk.Convoy }}">
 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 .Local }}
28{{ if eq .Media "text/plain" }}
29<p><a href="/d/{{ .XID }}">Attachment: {{ .Name }}</a>
30{{ else }}
31<p><a href="/d/{{ .XID }}"><img src="/d/{{ .XID }}" title="{{ .URL }}"></a>
32{{ end }}
33{{ else }}
34<p><a href="{{ .URL }}">External Attachment: {{ .Name }}</a>
35{{ end }}
36{{ end }}
37</div>
38{{ end }}
39{{ if .BonkCSRF }}
40<p>
41<div>
42{{ if .Honk.Public }}
43<button onclick="bonk(this, '{{ .Honk.XID }}'); return false;"><a href="/bonk">bonk</a></button>
44{{ end }}
45<button onclick="showhonkform('{{ .Honk.XID }}', '{{ .Honk.Username }}'); return false;"><a href="/newhonk">tonk</a></button>
46<form class="inlineform" action="/zonkit" method="POST">
47<input type="hidden" name="CSRF" value="{{ .BonkCSRF }}">
48<input type="hidden" name="honk" value="{{ .Honk.XID }}">
49<input type="hidden" name="honker" value="{{ .Honk.Honker }}">
50<input type="hidden" name="convoy" value="{{ .Honk.Convoy }}">
51<select name="wherefore">
52<option>this honk</option>
53<option>this honker</option>
54<option>this convoy</option>
55</select>
56<button onclick="zonkit(this); return false;"><a href="/zonkit">zonk</a></button>
57</form>
58</div>
59<p>
60{{ end }}
61</article>