hide the buttons for private like honks
Ted Unangst tedu@tedunangst.com
Wed, 01 May 2019 14:55:11 -0400
1 files changed,
2 insertions(+),
0 deletions(-)
jump to
M
views/honk.html
→
views/honk.html
@@ -28,8 +28,10 @@ {{ end }}
{{ if and .BonkCSRF (not (eq .Honk.What "zonked")) }} <p> <div> +{{ if not .Honk.Privacy }} <button onclick="bonk(this, '{{ .Honk.XID }}'); return false;"><a href="/bonk">bonk</a></button> <button onclick="showhonkform('{{ .Honk.XID }}', '{{ .Honk.Username }}'); return false;"><a href="/newhonk">tonk</a></button> +{{ end }} <form class="inlineform" action="/zonkit" method="POST"> <input type="hidden" name="CSRF" value="{{ .BonkCSRF }}"> <input type="hidden" name="honk" value="{{ .Honk.XID }}">