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