2023-01-26 21:56:48 +01:00
< article class = "honk {{ .Honk.Style }}" data-convoy = "{{ .Honk.Convoy }}" data-hname = "{{ .Honk.Handles }}" data-xid = "{{ .Honk.XID }}" data-id = "{{ .Honk.ID }}" >
2019-06-20 21:15:50 +02:00
{{ $bonkcsrf := .BonkCSRF }}
2019-10-11 22:36:20 +02:00
{{ $IsPreview := .IsPreview }}
2019-11-17 00:50:50 +01:00
{{ $maplink := .MapLink }}
2020-05-08 22:15:06 +02:00
{{ $omitimages := .OmitImages }}
2019-04-09 13:59:33 +02:00
{{ with .Honk }}
2019-04-29 01:16:24 +02:00
< header >
2019-10-07 02:42:53 +02:00
{{ if $bonkcsrf }}
< a class = "honkerlink" href = "/h?xid={{ .Honker }}" data-xid = "{{ .Honker }}" >
{{ else }}
< a href = "{{ .Honker }}" rel = noreferrer >
{{ end }}
2019-09-09 20:09:50 +02:00
< img alt = "" src = "/a?a={{ .Honker}}" >
2022-11-29 18:29:19 +01:00
< / a >
2019-07-02 04:12:44 +02:00
{{ if .Oonker }}
2019-10-07 02:42:53 +02:00
{{ if $bonkcsrf }}
< a class = "honkerlink" href = "/h?xid={{ .Oonker }}" data-xid = "{{ .Oonker }}" >
{{ else }}
< a href = "{{ .Oonker }}" rel = noreferrer >
{{ end }}
2019-09-09 20:09:50 +02:00
< img alt = "" src = "/a?a={{ .Oonker}}" >
2022-11-29 18:29:19 +01:00
< / a >
2019-07-02 04:12:44 +02:00
{{ end }}
2019-07-05 19:11:53 +02:00
< p >
{{ if $bonkcsrf }}
2019-10-04 08:32:44 +02:00
< a class = "honkerlink" href = "/h?xid={{ .Honker }}" data-xid = "{{ .Honker }}" > {{ .Username }}< / a >
2019-07-05 19:11:53 +02:00
{{ else }}
< a href = "{{ .Honker }}" rel = noreferrer > {{ .Username }}< / a >
{{ end }}
2019-11-05 00:14:40 +01:00
< span class = "clip" > < a href = "{{ .URL }}" rel = noreferrer > {{ .What }}< / a > {{ .Date.Local.Format "02 Jan 2006 15:04 -0700" }}< / span >
2019-05-15 22:27:50 +02:00
{{ if .Oonker }}
< br >
2023-01-26 21:56:48 +01:00
< span class = "left1em clip" >
2019-07-10 05:41:13 +02:00
{{ if $bonkcsrf }}
2019-10-07 02:42:53 +02:00
original: < a class = "honkerlink" href = "/h?xid={{ .Oonker }}" data-xid = "{{ .Oonker }}" > {{ .Oondle }}< / a >
2019-07-10 05:41:13 +02:00
{{ else }}
original: < a href = "{{ .Oonker }}" rel = noreferrer > {{ .Oondle }}< / a >
{{ end }}
2019-05-15 22:27:50 +02:00
< / span >
{{ else }}
2019-04-16 23:11:04 +02:00
{{ if .RID }}
< br >
2023-01-26 21:56:48 +01:00
< span class = "left1em 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-06-20 21:15:50 +02:00
{{ if $bonkcsrf }}
2023-01-26 21:56:48 +01:00
< span class = "left1em clip" > convoy: < a class = "convoylink" href = "/t?c={{ .Convoy }}" > {{ .Convoy }}< / a > < / span >
2019-06-20 21:15:50 +02:00
{{ end }}
2019-04-29 01:16:24 +02:00
< / header >
2019-07-10 20:36:14 +02:00
< p >
< details class = "noise" { { . Open } } >
2023-02-22 21:04:24 +01:00
< summary > {{ .HTPrecis }}< p > < / summary >
2019-09-18 21:08:50 +02:00
< p > {{ .HTPrecis }}
2022-03-02 20:44:40 +01:00
< p class = "content" > {{ .HTML }}
2019-10-03 00:20:14 +02:00
{{ with .Time }}
2019-10-03 03:04:44 +02:00
< p > Time: {{ .StartTime.Local.Format "03:04PM EDT Mon Jan 02"}}
2019-10-03 06:11:02 +02:00
{{ if .Duration }}< br > Duration: {{ .Duration }}{{ end }}
2019-10-03 00:20:14 +02:00
{{ end }}
2019-09-28 06:12:50 +02:00
{{ with .Place }}
2019-11-17 00:50:50 +01:00
< p > Location: {{ with .Url }}< a href = "{{ . }}" rel = noreferrer > {{ end }}{{ .Name }}{{ if .Url }}< / a > {{ end }}{{ if or .Latitude .Longitude }} < a href = "{{ if eq $maplink " apple " } } https: / / maps . apple . com / ? q = {{ or . Name " here " } } & z = 16&ll={{ . Latitude } } , { { . Longitude } } { { else } } https: / / www . openstreetmap . org / ? mlat = {{ . Latitude } } & mlon = {{ . Longitude } } # map = 16/{{ . Latitude } } / { { . Longitude } } { { end } } " rel = noreferrer > {{ .Latitude }} {{ .Longitude }}< / a > {{ end }}
2019-09-28 06:12:50 +02:00
{{ end }}
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" }}
2019-11-26 08:37:12 +01:00
< p > < a href = "/d/{{ .XID }}" > Attachment: {{ .Name }}< / a > {{ if not (eq .Desc .Name) }} {{ .Desc }}{{ end }}
2019-10-31 08:19:15 +01:00
{{ else if eq .Media "application/pdf" }}
2019-11-26 08:37:12 +01:00
< p > < a href = "/d/{{ .XID }}" > Attachment: {{ .Name }}< / a > {{ if not (eq .Desc .Name) }} {{ .Desc }}{{ end }}
2019-04-15 16:04:41 +02:00
{{ else }}
2020-05-08 22:15:06 +02:00
{{ if $omitimages }}
< p > < a href = "/d/{{ .XID }}" > Image: {{ .Name }}< / a > {{ if not (eq .Desc .Name) }} {{ .Desc }}{{ end }}
{{ else }}
2023-07-20 23:38:24 +02:00
< p > < img src = "/d/{{ .XID }}" loading = lazy title = "{{ .Desc }}" alt = "{{ .Desc }}" >
2019-04-09 13:59:33 +02:00
{{ end }}
2020-05-08 22:15:06 +02:00
{{ end }}
2019-05-25 19:34:41 +02:00
{{ else }}
2020-10-01 19:18:05 +02:00
{{ if .External }}
2019-11-26 08:37:12 +01:00
< p > < a href = "{{ .URL }}" rel = noreferrer > External Attachment: {{ .Name }}< / a > {{ if not (eq .Desc .Name) }} {{ .Desc }}{{ end }}
2019-05-31 06:24:18 +02:00
{{ else }}
{{ if eq .Media "video/mp4" }}
2019-09-10 21:40:59 +02:00
< p > < video controls src = "{{ .URL }}" > {{ .Name }}< / video >
2019-05-31 06:24:18 +02:00
{{ else }}
2019-09-10 21:40:59 +02:00
< p > < img src = "{{ .URL }}" title = "{{ .Desc }}" alt = "{{ .Desc }}" >
2019-05-31 06:24:18 +02:00
{{ end }}
{{ end }}
2019-05-25 19:34:41 +02:00
{{ end }}
2019-04-09 13:59:33 +02:00
{{ end }}
2019-07-10 20:36:14 +02:00
< / details >
2019-04-15 16:04:41 +02:00
{{ end }}
2019-10-11 22:36:20 +02:00
{{ if and $bonkcsrf (not $IsPreview) }}
2019-04-09 13:59:33 +02:00
< p >
2019-07-10 20:36:14 +02:00
< details class = "actions" >
2020-05-08 22:26:12 +02:00
< 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-08-24 02:43:30 +02:00
{{ if .Honk.IsBonked }}
2023-01-26 21:56:48 +01:00
< button class = "unbonk" > unbonk< / button >
2019-08-24 02:43:30 +02:00
{{ else }}
2023-01-26 21:56:48 +01:00
< button class = "bonk" > bonk< / button >
2019-08-24 02:43:30 +02:00
{{ end }}
2019-06-27 18:04:44 +02:00
{{ else }}
< button disabled > nope< / button >
2019-05-01 20:55:11 +02:00
{{ end }}
2023-01-26 21:56:48 +01:00
< button class = "honkback" > < a href = "/newhonk?rid={{ .Honk.XID }}" > honk back< / a > < / button >
< button class = "mute" > mute< / button >
< button class = "evenmore" > even more< / button >
2020-05-08 22:26:12 +02:00
< / div >
2023-01-26 21:56:48 +01:00
< div id = "evenmore{{ .Honk.ID }}" class = "hide" >
2020-05-08 22:26:12 +02:00
< p >
2023-01-26 21:56:48 +01:00
< button class = "zonk" > zonk< / button >
2019-08-19 06:01:00 +02:00
{{ if .Honk.IsAcked }}
2023-01-26 21:56:48 +01:00
< button class = "flogit-deack" > deack< / button >
2019-08-19 06:01:00 +02:00
{{ else }}
2023-01-26 21:56:48 +01:00
< button class = "flogit-ack" > ack< / button >
2019-10-11 22:03:17 +02:00
{{ end }}
{{ if .Honk.IsSaved }}
2023-01-26 21:56:48 +01:00
< button class = "flogit-unsave" > unsave< / button >
2019-10-11 22:03:17 +02:00
{{ else }}
2023-01-26 21:56:48 +01:00
< button class = "flogit-save" > save< / button >
2019-08-19 06:01:00 +02:00
{{ end }}
2019-11-04 08:49:23 +01:00
{{ if .Honk.IsUntagged }}
< button disabled > untagged< / button >
{{ else }}
2023-01-26 21:56:48 +01:00
< button class = "flogit-untag" > untag me< / button >
2019-11-04 08:49:23 +01:00
{{ end }}
2019-09-17 00:00:13 +02:00
< button > < a href = "/edit?xid={{ .Honk.XID }}" > edit< / a > < / button >
2020-04-20 02:10:40 +02:00
{{ if not (eq .Badonk "none") }}
2020-01-24 00:08:15 +01:00
{{ if .Honk.IsReacted }}
2020-02-07 18:01:30 +01:00
< button disabled > badonked< / button >
2020-01-24 00:08:15 +01:00
{{ else }}
2023-01-26 21:56:48 +01:00
< button class = "flogit-react" > {{ .Badonk }}< / button >
2020-04-20 02:10:40 +02:00
{{ end }}
2020-02-07 17:57:00 +01:00
{{ end }}
2019-04-26 15:07:13 +02:00
< / 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 >