all repos — honk @ db84e2777f079b13bb4a90c0e768362891928599

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 id="honkrefresher" class="refresh">refresh</button><span></span>
22<button id="newerscroller" 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{{ $UserURL := .User.URL }}
33{{ range .Honks }}
34{{ template "honk.html" map "Honk" . "MapLink" $MapLink "BonkCSRF" $BonkCSRF "IsPreview" $IsPreview "Badonk" $Badonk "OmitImages" $OmitImages "UserURL" $UserURL }}
35{{ end }}
36</div>
37</div>
38</main>