2019-04-09 13:59:33 +02:00
|
|
|
{{ template "header.html" . }}
|
2019-04-29 01:16:24 +02:00
|
|
|
<main>
|
2019-04-23 17:22:31 +02:00
|
|
|
<div class="info" id="infobox">
|
2019-11-04 03:09:03 +01:00
|
|
|
<div id="srvmsg">
|
2019-04-09 13:59:33 +02:00
|
|
|
{{ if .Name }}
|
|
|
|
<p>{{ .Name }} <span style="margin-left:1em;"><a href="/u/{{ .Name }}/rss">rss</a></span>
|
|
|
|
<p>{{ .WhatAbout }}
|
|
|
|
{{ end }}
|
2019-11-04 03:09:03 +01:00
|
|
|
<p>{{ .ServerMessage }}
|
|
|
|
</div>
|
2019-04-23 17:22:31 +02:00
|
|
|
{{ if .HonkCSRF }}
|
|
|
|
{{ template "honkform.html" . }}
|
|
|
|
{{ end }}
|
|
|
|
</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>
|
|
|
|
{{ end }}
|
2019-09-05 23:29:40 +02:00
|
|
|
<div id="honksonpage">
|
2019-09-16 21:15:32 +02:00
|
|
|
<div>
|
2019-09-19 04:17:50 +02:00
|
|
|
{{ $BonkCSRF := .HonkCSRF }}
|
2019-10-11 22:36:20 +02:00
|
|
|
{{ $IsPreview := .IsPreview }}
|
2019-04-09 13:59:33 +02:00
|
|
|
{{ range .Honks }}
|
2019-10-11 22:36:20 +02:00
|
|
|
{{ template "honk.html" map "Honk" . "BonkCSRF" $BonkCSRF "IsPreview" $IsPreview }}
|
2019-04-09 13:59:33 +02:00
|
|
|
{{ end }}
|
2019-09-05 23:29:40 +02:00
|
|
|
</div>
|
2019-09-16 21:15:32 +02:00
|
|
|
</div>
|
2019-04-29 01:16:24 +02:00
|
|
|
</main>
|
2019-09-19 04:17:50 +02:00
|
|
|
{{ if .HonkCSRF }}
|
2019-04-23 17:22:31 +02:00
|
|
|
<script>
|
2019-09-19 04:17:50 +02:00
|
|
|
var csrftoken = {{ .HonkCSRF }}
|
|
|
|
var honksforpage = { }
|
2019-09-24 23:55:17 +02:00
|
|
|
var curpagestate = { name: "{{ .PageName }}", arg : "{{ .PageArg }}" }
|
2019-10-20 20:36:55 +02:00
|
|
|
var tophid = { }
|
|
|
|
tophid[curpagestate.name + ":" + curpagestate.arg] = "{{ .TopHID }}"
|
2019-10-07 19:18:30 +02:00
|
|
|
var servermsgs = { }
|
|
|
|
servermsgs[curpagestate.name + ":" + curpagestate.arg] = "{{ .ServerMessage }}"
|
|
|
|
|
2019-04-23 17:22:31 +02:00
|
|
|
</script>
|
2019-09-19 04:17:50 +02:00
|
|
|
<script src="/honkpage.js{{ .JSParam }}"></script>
|
2019-04-23 17:22:31 +02:00
|
|
|
{{ end }}
|