all repos — honk @ c41a26dfedd7f9cda0ebeda7b9be7f95f4eb9006

my fork of honk

add file
Ted Unangst tedu@tedunangst.com
Wed, 13 May 2020 17:16:18 -0400
commit

c41a26dfedd7f9cda0ebeda7b9be7f95f4eb9006

parent

e3f9041fa0a52adefc61946b436df112902c4f6c

1 files changed, 24 insertions(+), 0 deletions(-)

jump to
A views/chatter.html

@@ -0,0 +1,24 @@

+{{ template "header.html" . }} +<main> +<div class="info"> +<p> +<form action="/sendchonk" method="POST"> +<h3>new chatter</h3> +<input type="hidden" name="CSRF" value="{{ .ChonkCSRF }}"> +<p><label for=target>target:</label><br> +<input type="text" name="target" value="" autocomplete=off> +<p><label for=noise>noise:</label><br> +<textarea name="noise" id="noise"></textarea> +<p><button name="chonk" value="chonk">chonk</button> +</form> +</div> +{{ $chonkcsrf := .ChonkCSRF }} +{{ range .Chatter }} +<section class="honk"> +{{ range . }} +<p> +{{ .Handle }}: {{ .HTML }} +{{ end }} +</section> +{{ end }} +</main>