improve appearance of honkers page
Ted Unangst tedu@tedunangst.com
Wed, 24 Apr 2019 10:56:39 -0400
1 files changed,
10 insertions(+),
5 deletions(-)
jump to
M
views/honkers.html
→
views/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>