all repos — honk @ b43fcd6fabcc6e407a4bf0374ffcea7cc3a89b7f

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<div>
 6{{ if .Name }}
 7<p>{{ .Name }} <span style="margin-left:1em;"><a href="/u/{{ .Name }}/rss">rss</a></span>
 8<p>{{ .WhatAbout }}
 9{{ end }}
10<p>{{ .ServerMessage }}
11
12<form action="/q" method="GET">
13<input type="text" name="q" autocomplete=off size=10 id="searchbox" placeholder="search">
14</form>
15
16</div>
17{{ if .HonkCSRF }}
18{{ template "honkform.html" . }}
19<script src="/honkpage.js{{ .JSParam }}" defer data-csrf="{{ .HonkCSRF }}" data-pagename="{{ .PageName }}" data-pagearg="{{ .PageArg }}" data-tophid="{{ .TopHID }}" data-srvmsg="{{ .ServerMessage }}"></script>
20{{ end }}
21{{ if .LocalJSParam }}
22<script src="/local.js{{ .LocalJSParam }}" defer></script>
23{{ end }}
24</div>
25{{ if and .HonkCSRF (not .IsPreview) }}
26<div id="refreshbox">
27<p><button id="honkrefresher" class="refresh">refresh</button><span></span>
28<button id="newerscroller" class="scrolldown">scroll down</button>
29</div>
30{{ end }}
31<div id="honksonpage">
32<div>
33{{ $BonkCSRF := .HonkCSRF }}
34{{ $IsPreview := .IsPreview }}
35{{ $MapLink := .MapLink }}
36{{ $Badonk := .User.Options.Reaction }}
37{{ $OmitImages := .User.Options.OmitImages }}
38{{ $UserURL := .User.URL }}
39{{ range .Honks }}
40{{ template "honk.html" map "Honk" . "MapLink" $MapLink "BonkCSRF" $BonkCSRF "IsPreview" $IsPreview "Badonk" $Badonk "OmitImages" $OmitImages "UserURL" $UserURL }}
41{{ end }}
42</div>
43</div>
44</main>