all repos — honk @ 15d6fd92771656efcc2b09feb9e1cba2b3333fd4

my fork of honk

views/honkers.html (view raw)

 1{{ template "header.html" . }}
 2<div class="center">
 3<div class="info">
 4<p>
 5<form action="/savehonker" method="POST">
 6<span class="title">add new honker</span>
 7<input type="hidden" name="CSRF" value="{{ .HonkerCSRF }}">
 8<p><input tabindex=1 type="text" name="name" value="" autocomplete=off> - name
 9<p><input tabindex=1 type="text" name="url" value="" autocomplete=off> - url
10<p><span><label for="peep">just peeping:</label>
11<input tabindex=1 type="checkbox" id="peep" name="peep" value="peep"><span></span></span>
12<p><input tabindex=1 type="submit" name="add honker" value="add honker">
13</form>
14</div>
15{{ $honkercsrf := .HonkerCSRF }}
16{{ range .Honkers }}
17<div class="honk">
18<div class="title">
19<img alt="avatar" src="/a?a={{ .XID }}">
20<p style="font-size: 1.8em">{{ .Name }}
21</div>
22<p>url: <a href="{{ .XID }}" rel=noreferrer>{{ .XID }}</a>
23<p>flavor: {{ .Flavor }}
24<p><a href="/h/{{ .Name }}">honks</a>
25<p>combos:{{ range .Combos }} <a href="/c/{{ . }}">{{ . }}</a>{{ end }}
26<form action="/savehonker" method="POST">
27<input type="hidden" name="CSRF" value="{{ $honkercsrf }}">
28<input type="hidden" name="honkerid" value="{{ .ID }}">
29<p>combos: <input type="text" name="combos" value="{{ range .Combos }}{{ . }} {{end}}">
30<p>depart: <input type="text" name="goodbye" value="" autocomplete=off> (say "goodbye")
31<p><input type="submit" name="save" value="save">
32</form>
33</div>
34{{ end }}
35</div>
36</div>