improve appearance of honkers page

This commit is contained in:
Ted Unangst 2019-04-24 10:56:39 -04:00
parent 1f97f11605
commit 9a4e2900ac
1 changed files with 10 additions and 5 deletions

View File

@ -14,17 +14,22 @@
</div>
{{ $honkercsrf := .HonkerCSRF }}
{{ range .Honkers }}
<form action="/savehonker" method="POST" class="honk">
<input type="hidden" name="CSRF" value="{{ $honkercsrf }}">
<input type="hidden" name="honkerid" value="{{ .ID }}">
<p>name: {{ .Name }}
<p>url: {{ .XID }}
<div class="honk">
<div class="title">
<img alt="avatar" src="/a?a={{ .XID }}">
<p style="font-size: 1.8em">{{ .Name }}
</div>
<p>url: <a href="{{ .XID }}" rel=noreferrer>{{ .XID }}</a>
<p>flavor: {{ .Flavor }}
<p><a href="/h/{{ .Name }}">honks</a>
<p>combos:{{ range .Combos }} <a href="/c/{{ . }}">{{ . }}</a>{{ end }}
<form action="/savehonker" method="POST">
<input type="hidden" name="CSRF" value="{{ $honkercsrf }}">
<input type="hidden" name="honkerid" value="{{ .ID }}">
<p>combos: <input type="text" name="combos" value="{{ range .Combos }}{{ . }} {{end}}">
<p><input type="submit" name="save" value="save">
</form>
</div>
{{ end }}
</div>
</div>