2019-05-29 02:57:55 +02:00
|
|
|
<article class="honk {{ .Honk.What }} {{ and (not .Honk.Public) "limited" }}" data-convoy="{{ .Honk.Convoy }}">
|
2019-04-09 13:59:33 +02:00
|
|
|
{{ with .Honk }}
|
2019-04-29 01:16:24 +02:00
|
|
|
<header>
|
2019-04-16 23:11:04 +02:00
|
|
|
<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>
|
2019-05-15 22:27:50 +02:00
|
|
|
{{ if .Oonker }}
|
|
|
|
<br>
|
|
|
|
<span style="margin-left: 3em;" class="clip">
|
|
|
|
original: {{ .Oonker }}
|
|
|
|
</span>
|
|
|
|
{{ else }}
|
2019-04-16 23:11:04 +02:00
|
|
|
{{ if .RID }}
|
|
|
|
<br>
|
2019-04-20 04:06:34 +02:00
|
|
|
<span style="margin-left: 3em;" class="clip">
|
2019-04-16 23:11:04 +02:00
|
|
|
in reply to: <a href="{{ .RID }}" rel=noreferrer>{{ .RID }}</a>
|
|
|
|
</span>
|
|
|
|
{{ end }}
|
2019-05-15 22:27:50 +02:00
|
|
|
{{ end }}
|
2019-04-19 17:50:35 +02:00
|
|
|
<br>
|
2019-04-20 04:06:34 +02:00
|
|
|
<span style="margin-left: 3em;" class="clip">
|
2019-04-24 08:37:36 +02:00
|
|
|
convoy: <a href="/t?c={{ .Convoy }}">{{ .Convoy }}</a>
|
2019-04-19 17:50:35 +02:00
|
|
|
</span>
|
2019-04-29 01:16:24 +02:00
|
|
|
</header>
|
2019-04-15 22:18:38 +02:00
|
|
|
<div class="noise">
|
|
|
|
<p>{{ .HTML }}
|
2019-04-09 13:59:33 +02:00
|
|
|
{{ range .Donks }}
|
2019-05-25 19:34:41 +02:00
|
|
|
{{ if .Local }}
|
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 }}
|
2019-05-25 19:34:41 +02:00
|
|
|
{{ else }}
|
2019-05-31 06:24:18 +02:00
|
|
|
{{ if .XID }}
|
2019-05-25 19:34:41 +02:00
|
|
|
<p><a href="{{ .URL }}">External Attachment: {{ .Name }}</a>
|
2019-05-31 06:24:18 +02:00
|
|
|
{{ else }}
|
|
|
|
{{ if eq .Media "video/mp4" }}
|
|
|
|
<p><a href="{{ .URL }}"><video controls src="{{ .URL }}">{{ .Name }}</video></a>
|
|
|
|
{{ else }}
|
|
|
|
<p><a href="{{ .URL }}"><img src="{{ .URL }}" title="{{ .Name }}"></a>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
2019-05-25 19:34:41 +02:00
|
|
|
{{ end }}
|
2019-04-09 13:59:33 +02:00
|
|
|
{{ end }}
|
2019-04-15 22:18:38 +02:00
|
|
|
</div>
|
2019-04-15 16:04:41 +02:00
|
|
|
{{ end }}
|
2019-05-03 19:42:39 +02:00
|
|
|
{{ if .BonkCSRF }}
|
2019-04-09 13:59:33 +02:00
|
|
|
<p>
|
2019-06-02 20:44:39 +02:00
|
|
|
<details>
|
|
|
|
<summary>Actions
|
|
|
|
</summary>
|
2019-04-26 15:07:13 +02:00
|
|
|
<div>
|
2019-06-02 21:33:01 +02:00
|
|
|
<p>
|
2019-05-28 08:36:47 +02:00
|
|
|
{{ if .Honk.Public }}
|
2019-04-23 17:12:17 +02:00
|
|
|
<button onclick="bonk(this, '{{ .Honk.XID }}'); return false;"><a href="/bonk">bonk</a></button>
|
2019-05-01 20:55:11 +02:00
|
|
|
{{ end }}
|
2019-05-28 08:36:47 +02:00
|
|
|
<button onclick="showhonkform('{{ .Honk.XID }}', '{{ .Honk.Username }}'); return false;"><a href="/newhonk">tonk</a></button>
|
2019-04-26 15:07:13 +02:00
|
|
|
<form class="inlineform" action="/zonkit" method="POST">
|
|
|
|
<input type="hidden" name="CSRF" value="{{ .BonkCSRF }}">
|
|
|
|
<input type="hidden" name="honk" value="{{ .Honk.XID }}">
|
|
|
|
<input type="hidden" name="honker" value="{{ .Honk.Honker }}">
|
|
|
|
<input type="hidden" name="convoy" value="{{ .Honk.Convoy }}">
|
2019-06-02 20:44:39 +02:00
|
|
|
<button onclick="zonkit(this); return false;"><a href="/zonkit">zonk</a></button>
|
2019-04-26 15:07:13 +02:00
|
|
|
<select name="wherefore">
|
|
|
|
<option>this honk</option>
|
|
|
|
<option>this honker</option>
|
|
|
|
<option>this convoy</option>
|
|
|
|
</select>
|
|
|
|
</form>
|
|
|
|
</div>
|
2019-06-02 20:44:39 +02:00
|
|
|
</details>
|
2019-04-26 15:07:13 +02:00
|
|
|
<p>
|
2019-04-09 13:59:33 +02:00
|
|
|
{{ end }}
|
2019-04-29 01:16:24 +02:00
|
|
|
</article>
|