all repos — honk @ c41a26dfedd7f9cda0ebeda7b9be7f95f4eb9006

my fork of honk

views/chatter.html (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 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>