all repos — honk @ cc077ec2e471ca3c46c7be8550f66c4263f26fe4

my fork of honk

rework honkers page some
Ted Unangst tedu@tedunangst.com
Sun, 26 May 2019 16:04:39 -0400
commit

cc077ec2e471ca3c46c7be8550f66c4263f26fe4

parent

813c3cddc806197336b16e3b93a382dc82accb6a

2 files changed, 3 insertions(+), 5 deletions(-)

jump to
M honk.gohonk.go

@@ -977,7 +977,7 @@ honkerid, _ := strconv.ParseInt(r.FormValue("honkerid"), 10, 0)

if honkerid > 0 { goodbye := r.FormValue("goodbye") - if goodbye == "goodbye" { + if goodbye == "F" { db := opendatabase() row := db.QueryRow("select xid from honkers where honkerid = ? and userid = ?", honkerid, u.UserID)
M views/honkers.htmlviews/honkers.html

@@ -17,17 +17,15 @@ {{ range .Honkers }}

<section class="honk"> <header> <img alt="avatar" src="/a?a={{ .XID }}"> -<p style="font-size: 1.8em">{{ .Name }} +<p style="font-size: 1.8em"><a href="/h/{{ .Name }}">{{ .Name }}<a> </header> <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>depart: <input type="text" name="goodbye" value="" autocomplete=off> (say "goodbye") +<p>depart: <input type="text" name="goodbye" placeholder="press F" value="" autocomplete=off> <p><input type="submit" name="save" value="save"> </form> </section>