hide the buttons for private like honks

This commit is contained in:
Ted Unangst 2019-05-01 14:55:11 -04:00
parent dee1eda34e
commit 3f6b42c456
1 changed files with 2 additions and 0 deletions

View File

@ -28,8 +28,10 @@ convoy: <a href="/t?c={{ .Convoy }}">{{ .Convoy }}</a>
{{ if and .BonkCSRF (not (eq .Honk.What "zonked")) }} {{ if and .BonkCSRF (not (eq .Honk.What "zonked")) }}
<p> <p>
<div> <div>
{{ if not .Honk.Privacy }}
<button onclick="bonk(this, '{{ .Honk.XID }}'); return false;"><a href="/bonk">bonk</a></button> <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> <button onclick="showhonkform('{{ .Honk.XID }}', '{{ .Honk.Username }}'); return false;"><a href="/newhonk">tonk</a></button>
{{ end }}
<form class="inlineform" action="/zonkit" method="POST"> <form class="inlineform" action="/zonkit" method="POST">
<input type="hidden" name="CSRF" value="{{ .BonkCSRF }}"> <input type="hidden" name="CSRF" value="{{ .BonkCSRF }}">
<input type="hidden" name="honk" value="{{ .Honk.XID }}"> <input type="hidden" name="honk" value="{{ .Honk.XID }}">