all repos — honk @ d142286f521764f3c8b71727582a67ad695dfa70

my fork of honk

views/honkpage.html (view raw)

 1{{ template "header.html" . }}
 2<main>
 3<div class="info" id="infobox">
 4<div id="srvmsg">
 5{{ if .Name }}
 6<p>{{ .Name }} <span class="left1em"><a href="/u/{{ .Name }}/rss">rss</a></span>
 7<p>{{ .WhatAbout }}
 8{{ end }}
 9<p>{{ .ServerMessage }}
10</div>
11{{ if .HonkCSRF }}
12{{ template "honkform.html" . }}
13<script src="/honkpage.js{{ .JSParam }}" defer data-csrf="{{ .HonkCSRF }}" data-pagename="{{ .PageName }}" data-pagearg="{{ .PageArg }}" data-tophid="{{ .TopHID }}" data-srvmsg="{{ .ServerMessage }}"></script>
14{{ end }}
15{{ if .LocalJSParam }}
16<script src="/local.js{{ .LocalJSParam }}" defer></script>
17{{ end }}
18</div>
19{{ if and .HonkCSRF (not .IsPreview) }}
20<div class="info" id="refreshbox">
21<p><button class="refresh">refresh</button><span></span>
22<button class="scrolldown">scroll down</button>
23</div>
24{{ end }}
25<div id="honksonpage">
26<div>
27{{ $BonkCSRF := .HonkCSRF }}
28{{ $IsPreview := .IsPreview }}
29{{ $MapLink := .MapLink }}
30{{ $Badonk := .User.Options.Reaction }}
31{{ $OmitImages := .User.Options.OmitImages }}
32{{ range .Honks }}
33{{ template "honk.html" map "Honk" . "MapLink" $MapLink "BonkCSRF" $BonkCSRF "IsPreview" $IsPreview "Badonk" $Badonk "OmitImages" $OmitImages }}
34{{ end }}
35</div>
36</div>
37</main>