2019-04-15 22:18:38 +02:00
|
|
|
<div class="honk {{ .Honk.What }}">
|
2019-04-09 13:59:33 +02:00
|
|
|
{{ with .Honk }}
|
|
|
|
<div class="title"><img alt="avatar" src="/a?a={{ .Honker}}"><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></div>
|
2019-04-15 22:18:38 +02:00
|
|
|
<div class="noise">
|
|
|
|
<p>{{ .HTML }}
|
2019-04-09 13:59:33 +02:00
|
|
|
{{ range .Donks }}
|
2019-04-15 16:04:41 +02:00
|
|
|
{{ if eq .Media "text/plain" }}
|
|
|
|
<p><a href="/d/{{ .XID }}">Attachment: {{ .Name }}</a>
|
|
|
|
{{ else }}
|
2019-04-09 13:59:33 +02:00
|
|
|
<p><a href="/d/{{ .XID }}"><img src="/d/{{ .XID }}" title="{{ .URL }}"></a>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
2019-04-15 22:18:38 +02:00
|
|
|
</div>
|
2019-04-15 16:04:41 +02:00
|
|
|
{{ end }}
|
2019-04-15 22:18:38 +02:00
|
|
|
{{ if and .Bonk (not (eq .Honk.What "zonked")) }}
|
2019-04-09 13:59:33 +02:00
|
|
|
<p>
|
|
|
|
<button onclick="bonk('{{ .Honk.XID }}'); return false;"><a href="/bonk">bonk</a></button>
|
2019-04-15 22:18:38 +02:00
|
|
|
<button onclick="showhonkform('{{ .Honk.XID }}', '{{ .Honk.Username }}'); return false;"><a href="/newhonk">tonk</a></button>
|
|
|
|
<button onclick="zonkit('{{ .Honk.XID }}'); return false;"><a href="/zonkit">zonk</a></button>
|
2019-04-09 13:59:33 +02:00
|
|
|
{{ end }}
|
|
|
|
</div>
|