2020-05-13 23:16:18 +02:00
|
|
|
{{ 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">
|
2020-05-14 00:05:38 +02:00
|
|
|
{{ $target := "" }}
|
2020-05-13 23:16:18 +02:00
|
|
|
{{ range . }}
|
2020-05-14 00:05:38 +02:00
|
|
|
{{ if eq $target "" }}
|
|
|
|
{{ $target = .Target }}
|
|
|
|
<p>chatter: {{ .Target }}
|
|
|
|
{{ end }}
|
2020-05-13 23:16:18 +02:00
|
|
|
<p>
|
|
|
|
{{ .Handle }}: {{ .HTML }}
|
|
|
|
{{ end }}
|
2020-05-14 00:05:38 +02:00
|
|
|
<form action="/sendchonk" method="POST">
|
|
|
|
<input type="hidden" name="CSRF" value="{{ $chonkcsrf }}">
|
|
|
|
<input type="hidden" name="target" value="{{ $target }}" autocomplete=off>
|
|
|
|
<p><label for=noise>noise:</label><br>
|
|
|
|
<textarea name="noise" id="noise"></textarea>
|
|
|
|
<p><button name="chonk" value="chonk">chonk</button>
|
|
|
|
</form>
|
2020-05-13 23:16:18 +02:00
|
|
|
</section>
|
|
|
|
{{ end }}
|
|
|
|
</main>
|