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