~ols/yeet

485914219d4ef3daa68ab341ea9a8f678394845b — Oliver Leaver-Smith 2 years ago 944234a
more dehonking
3 files changed, 4 insertions(+), 4 deletions(-)

M views/honkpage.html
M views/xzone.html
M web.go
M views/honkpage.html => views/honkpage.html +1 -1
@@ 27,7 27,7 @@ servermsgs[curpagestate.name + ":" + curpagestate.arg] = "{{ .ServerMessage }}"
<p><button onclick="refreshhonks(this)">refresh</button><span></span>
<button onclick="oldestnewest(this)">scroll down</button>
</div>
{{ if eq .ServerMessage "one honk maybe more" }} <script> hideelement("refreshbox")</script> {{ end }}
{{ if eq .ServerMessage "at least one post" }} <script> hideelement("refreshbox")</script> {{ end }}
{{ end }}
<div id="honksonpage">
<div>

M views/xzone.html => views/xzone.html +1 -1
@@ 10,7 10,7 @@
</div>
{{ range .Honkers }}
<section class="honk">
<p><a href="/h?xid={{ .XID }}">honks</a> by {{ .Handle }}
<p><a href="/h?xid={{ .XID }}">posts</a> by {{ .Handle }}
</section>
{{ end }}
</main>

M web.go => web.go +2 -2
@@ 1045,7 1045,7 @@ func showonehonk(w http.ResponseWriter, r *http.Request) {
		honks := []*Honk{honk}
		donksforhonks(honks)
		templinfo := getInfo(r)
		templinfo["ServerMessage"] = "one honk maybe more"
		templinfo["ServerMessage"] = "at least one post"
		templinfo["HonkCSRF"] = login.GetCSRF("honkhonk", r)
		honkpage(w, u, honks, templinfo)
		return


@@ 1063,7 1063,7 @@ func showonehonk(w http.ResponseWriter, r *http.Request) {
	}

	templinfo := getInfo(r)
	templinfo["ServerMessage"] = "one honk maybe more"
	templinfo["ServerMessage"] = "at least one post"
	templinfo["HonkCSRF"] = login.GetCSRF("honkhonk", r)
	honkpage(w, u, honks, templinfo)
}