36 lines
851 B
HTML
36 lines
851 B
HTML
{{ template "header.html" . }}
|
|
<main>
|
|
<div class="info" id="infobox">
|
|
{{ if .Name }}
|
|
<p>{{ .Name }} <span style="margin-left:1em;"><a href="/u/{{ .Name }}/rss">rss</a></span>
|
|
<p>{{ .WhatAbout }}
|
|
{{ end }}
|
|
<p>{{ .ServerMessage }}
|
|
{{ if .HonkCSRF }}
|
|
{{ template "honkform.html" . }}
|
|
{{ end }}
|
|
</div>
|
|
{{ if .TopXID }}
|
|
<div class="info" id="refreshbox">
|
|
<p><button onclick="refreshhonks(this)">refresh</button><span></span>
|
|
</div>
|
|
{{ end }}
|
|
<div id="honksonpage">
|
|
<div>
|
|
{{ $BonkCSRF := .HonkCSRF }}
|
|
{{ range .Honks }}
|
|
{{ template "honk.html" map "Honk" . "BonkCSRF" $BonkCSRF }}
|
|
{{ end }}
|
|
</div>
|
|
</div>
|
|
</main>
|
|
{{ if .HonkCSRF }}
|
|
<script>
|
|
var csrftoken = {{ .HonkCSRF }}
|
|
var topxid = { "{{ .PageName }}" : "{{ .TopXID }}" }
|
|
var honksforpage = { }
|
|
var thispagename = "{{ .PageName }}"
|
|
</script>
|
|
<script src="/honkpage.js{{ .JSParam }}"></script>
|
|
{{ end }}
|