all repos — honk @ 42c2b270b13a0fa3a6989f9fa71259732e0d1f9f

my fork of honk

views/honkpage.html (view raw)

 1{{ template "header.html" . }}
 2<main>
 3<div class="info" id="infobox">
 4{{ if .Name }}
 5<p>{{ .Name }} <span style="margin-left:1em;"><a href="/u/{{ .Name }}/rss">rss</a></span>
 6<p>{{ .WhatAbout }}
 7{{ end }}
 8<p>{{ .ServerMessage }}
 9{{ if .HonkCSRF }}
10{{ template "honkform.html" . }}
11{{ end }}
12</div>
13{{ $BonkCSRF := .HonkCSRF }}
14{{ if .TopXID }}
15<div class="info" id="refreshbox">
16<p><button onclick="refreshhonks(this)">refresh</button><span></span>
17</div>
18{{ end }}
19<div id="honksonpage">
20<div>
21{{ range .Honks }}
22{{ template "honk.html" map "Honk" . "BonkCSRF" $BonkCSRF }}
23{{ end }}
24</div>
25</div>
26</main>
27{{ if $BonkCSRF }}
28<script>
29{{ template "honkpage.js" . }}
30</script>
31{{ end }}