35 lines
1.2 KiB
HTML
35 lines
1.2 KiB
HTML
<div class="honk {{ .Honk.What }}">
|
|
{{ 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>
|
|
{{ if .RID }}
|
|
<br>
|
|
<span style="margin-left: 3em;" class="clip">
|
|
in reply to: <a href="{{ .RID }}" rel=noreferrer>{{ .RID }}</a>
|
|
</span>
|
|
{{ end }}
|
|
<br>
|
|
<span style="margin-left: 3em;" class="clip">
|
|
convoy: <a href="/t?c={{ .Convoy }}">{{ .Convoy }}</a>
|
|
</span>
|
|
</div>
|
|
<div class="noise">
|
|
<p>{{ .HTML }}
|
|
{{ range .Donks }}
|
|
{{ if eq .Media "text/plain" }}
|
|
<p><a href="/d/{{ .XID }}">Attachment: {{ .Name }}</a>
|
|
{{ else }}
|
|
<p><a href="/d/{{ .XID }}"><img src="/d/{{ .XID }}" title="{{ .URL }}"></a>
|
|
{{ end }}
|
|
{{ end }}
|
|
</div>
|
|
{{ end }}
|
|
{{ if and .Bonk (not (eq .Honk.What "zonked")) }}
|
|
<p>
|
|
<button onclick="bonk(this, '{{ .Honk.XID }}'); return false;"><a href="/bonk">bonk</a></button>
|
|
<button onclick="showhonkform('{{ .Honk.XID }}', '{{ .Honk.Username }}'); return false;"><a href="/newhonk">tonk</a></button>
|
|
<button onclick="zonkit(this, '{{ .Honk.XID }}'); return false;"><a href="/zonkit">zonk</a></button>
|
|
{{ end }}
|
|
</div>
|