45 lines
1.2 KiB
HTML
45 lines
1.2 KiB
HTML
{{ template "header.html" . }}
|
|
<main>
|
|
<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>
|
|
{{ if .HonkCSRF }}
|
|
{{ template "honkform.html" . }}
|
|
{{ end }}
|
|
</div>
|
|
{{ if and .HonkCSRF (not .IsPreview) }}
|
|
<div class="info" id="refreshbox">
|
|
<p><button onclick="refreshhonks(this)">refresh</button><span></span>
|
|
<button onclick="oldestnewest(this)">scroll down</button>
|
|
</div>
|
|
{{ end }}
|
|
{{ if .HonkCSRF }}
|
|
<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 }}
|
|
<div id="honksonpage">
|
|
<div>
|
|
{{ $BonkCSRF := .HonkCSRF }}
|
|
{{ $IsPreview := .IsPreview }}
|
|
{{ $MapLink := .MapLink }}
|
|
{{ range .Honks }}
|
|
{{ template "honk.html" map "Honk" . "MapLink" $MapLink "BonkCSRF" $BonkCSRF "IsPreview" $IsPreview }}
|
|
{{ end }}
|
|
</div>
|
|
</div>
|
|
</main>
|