all repos — honk @ 98d43d7a370a4302641cd69fcfa0a885c69fd0c7

my fork of honk

improve appearance of honkers page
Ted Unangst tedu@tedunangst.com
Wed, 24 Apr 2019 10:56:39 -0400
commit

98d43d7a370a4302641cd69fcfa0a885c69fd0c7

parent

44e881ea47f19119393cfa2d8b6bebf5463f1818

1 files changed, 10 insertions(+), 5 deletions(-)

jump to
M views/honkers.htmlviews/honkers.html

@@ -14,17 +14,22 @@ </form>

</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>