2019-04-09 13:59:33 +02:00
|
|
|
{{ template "header.html" . }}
|
2019-04-29 01:16:24 +02:00
|
|
|
<main>
|
2020-02-25 19:45:59 +01:00
|
|
|
<div class="info" id="infobox">
|
|
|
|
<div id="srvmsg">
|
|
|
|
{{ if .Name }}
|
|
|
|
<p>{{ .Name }} <span style="margin-left:1em;"><a href="/u/{{ .Name }}/rss">rss</a></span>
|
|
|
|
<p>{{ .WhatAbout }}
|
|
|
|
{{ end }}
|
|
|
|
<p>{{ .ServerMessage }}
|
|
|
|
</div>
|
2020-02-21 15:54:25 +01:00
|
|
|
{{ if .HonkCSRF }}
|
2020-02-25 19:45:59 +01:00
|
|
|
{{ template "honkform.html" . }}
|
2020-02-21 15:54:25 +01:00
|
|
|
<script>
|
|
|
|
var csrftoken = {{ .HonkCSRF }}
|
|
|
|
var honksforpage = { }
|
|
|
|
var curpagestate = { name: "{{ .PageName }}", arg : "{{ .PageArg }}" }
|
|
|
|
var tophid = { }
|
|
|
|
tophid[curpagestate.name + ":" + curpagestate.arg] = "{{ .TopHID }}"
|
|
|
|
var servermsgs = { }
|
|
|
|
servermsgs[curpagestate.name + ":" + curpagestate.arg] = "{{ .ServerMessage }}"
|
|
|
|
</script>
|
|
|
|
<script src="/honkpage.js{{ .JSParam }}"></script>
|
|
|
|
{{ end }}
|
2019-04-23 17:22:31 +02:00
|
|
|
</div>
|
2019-10-12 16:38:22 +02:00
|
|
|
{{ if and .HonkCSRF (not .IsPreview) }}
|
2019-08-19 09:02:24 +02:00
|
|
|
<div class="info" id="refreshbox">
|
2019-08-20 03:03:44 +02:00
|
|
|
<p><button onclick="refreshhonks(this)">refresh</button><span></span>
|
2019-11-15 21:54:24 +01:00
|
|
|
<button onclick="oldestnewest(this)">scroll down</button>
|
2019-08-19 09:02:24 +02:00
|
|
|
</div>
|
2020-02-21 15:54:25 +01:00
|
|
|
{{ if eq .ServerMessage "one honk maybe more" }} <script> hideelement("refreshbox")</script> {{ end }}
|
2019-04-23 17:22:31 +02:00
|
|
|
{{ end }}
|
2020-01-30 03:06:47 +01:00
|
|
|
<div id="honksonpage">
|
|
|
|
<div>
|
|
|
|
{{ $BonkCSRF := .HonkCSRF }}
|
|
|
|
{{ $IsPreview := .IsPreview }}
|
|
|
|
{{ $MapLink := .MapLink }}
|
2020-04-20 02:10:40 +02:00
|
|
|
{{ $Badonk := .User.Options.Reaction }}
|
2020-01-30 03:06:47 +01:00
|
|
|
{{ range .Honks }}
|
2020-04-20 02:10:40 +02:00
|
|
|
{{ template "honk.html" map "Honk" . "MapLink" $MapLink "BonkCSRF" $BonkCSRF "IsPreview" $IsPreview "Badonk" $Badonk }}
|
2020-01-30 03:06:47 +01:00
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</main>
|