honk/views/honkpage.html

38 lines
1.2 KiB
HTML
Raw Permalink Normal View History

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