2019-07-08 00:24:54 +00:00
|
|
|
<article class="honk {{ .Honk.Style }}" data-convoy="{{ .Honk.Convoy }}">
|
2019-06-20 19:15:50 +00:00
|
|
|
{{ $bonkcsrf := .BonkCSRF }}
|
2019-04-09 11:59:33 +00:00
|
|
|
{{ with .Honk }}
|
2019-04-28 23:16:24 +00:00
|
|
|
<header>
|
2019-04-16 21:11:04 +00:00
|
|
|
<img alt="avatar" src="/a?a={{ .Honker}}">
|
2019-07-02 02:12:44 +00:00
|
|
|
{{ if .Oonker }}
|
|
|
|
<img alt="avatar" src="/a?a={{ .Oonker}}">
|
|
|
|
{{ end }}
|
2019-07-05 17:11:53 +00:00
|
|
|
<p>
|
|
|
|
{{ if $bonkcsrf }}
|
|
|
|
<a href="/h?xid={{ .Honker }}" rel=noreferrer>{{ .Username }}</a>
|
|
|
|
{{ else }}
|
|
|
|
<a href="{{ .Honker }}" rel=noreferrer>{{ .Username }}</a>
|
|
|
|
{{ end }}
|
|
|
|
<span class="clip"><a href="{{ .URL }}" rel=noreferrer>{{ .What }}</a> {{ .Date.Format "02 Jan 2006 15:04" }}</span>
|
2019-05-15 20:27:50 +00:00
|
|
|
{{ if .Oonker }}
|
|
|
|
<br>
|
2019-06-03 03:57:36 +00:00
|
|
|
<span style="margin-left: 1em;" class="clip">
|
2019-07-10 03:41:13 +00:00
|
|
|
{{ if $bonkcsrf }}
|
|
|
|
original: <a href="/h?xid={{ .Oonker }}" rel=noreferrer>{{ .Oondle }}</a>
|
|
|
|
{{ else }}
|
|
|
|
original: <a href="{{ .Oonker }}" rel=noreferrer>{{ .Oondle }}</a>
|
|
|
|
{{ end }}
|
2019-05-15 20:27:50 +00:00
|
|
|
</span>
|
|
|
|
{{ else }}
|
2019-04-16 21:11:04 +00:00
|
|
|
{{ if .RID }}
|
|
|
|
<br>
|
2019-06-03 03:57:36 +00:00
|
|
|
<span style="margin-left: 1em;" class="clip">
|
2019-04-16 21:11:04 +00:00
|
|
|
in reply to: <a href="{{ .RID }}" rel=noreferrer>{{ .RID }}</a>
|
|
|
|
</span>
|
|
|
|
{{ end }}
|
2019-05-15 20:27:50 +00:00
|
|
|
{{ end }}
|
2019-04-19 15:50:35 +00:00
|
|
|
<br>
|
2019-06-20 19:15:50 +00:00
|
|
|
{{ if $bonkcsrf }}
|
|
|
|
<span style="margin-left: 1em;" class="clip">convoy: <a href="/t?c={{ .Convoy }}">{{ .Convoy }}</a></span>
|
|
|
|
{{ else }}
|
|
|
|
<span style="margin-left: 1em;" class="clip">convoy: {{ .Convoy }}</span>
|
|
|
|
{{ end }}
|
2019-04-28 23:16:24 +00:00
|
|
|
</header>
|
2019-04-15 20:18:38 +00:00
|
|
|
<div class="noise">
|
|
|
|
<p>{{ .HTML }}
|
2019-04-09 11:59:33 +00:00
|
|
|
{{ range .Donks }}
|
2019-05-25 17:34:41 +00:00
|
|
|
{{ if .Local }}
|
2019-04-15 14:04:41 +00:00
|
|
|
{{ if eq .Media "text/plain" }}
|
|
|
|
<p><a href="/d/{{ .XID }}">Attachment: {{ .Name }}</a>
|
|
|
|
{{ else }}
|
2019-04-09 11:59:33 +00:00
|
|
|
<p><a href="/d/{{ .XID }}"><img src="/d/{{ .XID }}" title="{{ .URL }}"></a>
|
|
|
|
{{ end }}
|
2019-05-25 17:34:41 +00:00
|
|
|
{{ else }}
|
2019-05-31 04:24:18 +00:00
|
|
|
{{ if .XID }}
|
2019-05-25 17:34:41 +00:00
|
|
|
<p><a href="{{ .URL }}">External Attachment: {{ .Name }}</a>
|
2019-05-31 04:24:18 +00: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 17:34:41 +00:00
|
|
|
{{ end }}
|
2019-04-09 11:59:33 +00:00
|
|
|
{{ end }}
|
2019-04-15 20:18:38 +00:00
|
|
|
</div>
|
2019-04-15 14:04:41 +00:00
|
|
|
{{ end }}
|
2019-06-20 19:15:50 +00:00
|
|
|
{{ if $bonkcsrf }}
|
2019-04-09 11:59:33 +00:00
|
|
|
<p>
|
2019-06-02 18:44:39 +00:00
|
|
|
<details>
|
|
|
|
<summary>Actions
|
|
|
|
</summary>
|
2019-04-26 13:07:13 +00:00
|
|
|
<div>
|
2019-06-02 19:33:01 +00:00
|
|
|
<p>
|
2019-05-28 06:36:47 +00:00
|
|
|
{{ if .Honk.Public }}
|
2019-06-15 22:46:00 +00:00
|
|
|
<button onclick="bonk(this, '{{ .Honk.XID }}');">bonk</button>
|
2019-06-27 16:04:44 +00:00
|
|
|
{{ else }}
|
|
|
|
<button disabled>nope</button>
|
2019-05-01 18:55:11 +00:00
|
|
|
{{ end }}
|
2019-07-08 00:24:54 +00:00
|
|
|
<button onclick="showhonkform(this, '{{ .Honk.XID }}', '{{ .Honk.Handle }}');">honk back</button>
|
2019-06-15 22:46:00 +00:00
|
|
|
<button onclick="muteit(this, '{{ .Honk.Convoy }}');">mute</button>
|
|
|
|
<button onclick="zonkit(this, '{{ .Honk.XID }}');">zonk</button>
|
2019-04-26 13:07:13 +00:00
|
|
|
</div>
|
2019-06-02 18:44:39 +00:00
|
|
|
</details>
|
2019-04-26 13:07:13 +00:00
|
|
|
<p>
|
2019-04-09 11:59:33 +00:00
|
|
|
{{ end }}
|
2019-04-28 23:16:24 +00:00
|
|
|
</article>
|