2019-04-09 11:59:33 +00:00
|
|
|
{{ template "header.html" . }}
|
2019-04-28 23:16:24 +00:00
|
|
|
<main>
|
2020-02-25 18:45:59 +00:00
|
|
|
<div class="info" id="infobox">
|
|
|
|
<div id="srvmsg">
|
|
|
|
{{ if .Name }}
|
2023-01-26 20:56:48 +00:00
|
|
|
<p>{{ .Name }} <span class="left1em"><a href="/u/{{ .Name }}/rss">rss</a></span>
|
2020-02-25 18:45:59 +00:00
|
|
|
<p>{{ .WhatAbout }}
|
|
|
|
{{ end }}
|
|
|
|
<p>{{ .ServerMessage }}
|
|
|
|
</div>
|
2020-02-21 14:54:25 +00:00
|
|
|
{{ if .HonkCSRF }}
|
2020-02-25 18:45:59 +00:00
|
|
|
{{ template "honkform.html" . }}
|
2023-01-26 20:56:48 +00:00
|
|
|
<script src="/honkpage.js{{ .JSParam }}" defer data-csrf="{{ .HonkCSRF }}" data-pagename="{{ .PageName }}" data-pagearg="{{ .PageArg }}" data-tophid="{{ .TopHID }}" data-srvmsg="{{ .ServerMessage }}"></script>
|
2020-02-21 14:54:25 +00:00
|
|
|
{{ end }}
|
2022-03-02 19:44:40 +00:00
|
|
|
{{ if .LocalJSParam }}
|
2023-01-26 20:56:48 +00:00
|
|
|
<script src="/local.js{{ .LocalJSParam }}" defer></script>
|
2022-03-02 19:44:40 +00:00
|
|
|
{{ end }}
|
2019-04-23 15:22:31 +00:00
|
|
|
</div>
|
2019-10-12 14:38:22 +00:00
|
|
|
{{ if and .HonkCSRF (not .IsPreview) }}
|
2019-08-19 07:02:24 +00:00
|
|
|
<div class="info" id="refreshbox">
|
2023-08-26 18:39:09 +00:00
|
|
|
<p><button id="honkrefresher" class="refresh">refresh</button><span></span>
|
|
|
|
<button id="newerscroller" class="scrolldown">scroll down</button>
|
2019-08-19 07:02:24 +00:00
|
|
|
</div>
|
2019-04-23 15:22:31 +00:00
|
|
|
{{ end }}
|
2020-01-30 02:06:47 +00:00
|
|
|
<div id="honksonpage">
|
|
|
|
<div>
|
|
|
|
{{ $BonkCSRF := .HonkCSRF }}
|
|
|
|
{{ $IsPreview := .IsPreview }}
|
|
|
|
{{ $MapLink := .MapLink }}
|
2020-04-20 00:10:40 +00:00
|
|
|
{{ $Badonk := .User.Options.Reaction }}
|
2020-05-08 20:15:06 +00:00
|
|
|
{{ $OmitImages := .User.Options.OmitImages }}
|
2020-01-30 02:06:47 +00:00
|
|
|
{{ range .Honks }}
|
2020-05-08 20:15:06 +00:00
|
|
|
{{ template "honk.html" map "Honk" . "MapLink" $MapLink "BonkCSRF" $BonkCSRF "IsPreview" $IsPreview "Badonk" $Badonk "OmitImages" $OmitImages }}
|
2020-01-30 02:06:47 +00:00
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</main>
|