all repos — honk @ c2429397f835803ebcf6797ff21728c341b2c50a

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><input type="submit" name="save" value="save">
31</form>
32</div>
33{{ end }}
34</div>
35</div>